array( 'name' => t('Title options'), 'components' => array('title'), 'autocomplete callback' => 'name_field_autocomplete_query', 'autocomplete arguments' => array('title'), 'list callback' => 'name_field_get_options', 'list arguments' => array(), ), 'data' => array( 'name' => t('Existing content'), 'autonomous' => TRUE, 'autocomplete callback' => 'name_field_data_query', ), ); } /** * Allows other modules to react to hook_field_insert(). * * Triggers a custom hook for name field inserts. Field API only calls the * module that defines the field. * * @see hook_field_insert() */ function hook_name_field_insert_notification($entity_type, $entity, $field, $instance, $langcode, &$items) { } /** * Allows other modules to react to hook_field_update(). * * Triggers a custom hook for name field updates. Field API only calls the * module that defines the field. * * @see hook_field_update() */ function hook_name_field_update_notification($entity_type, $entity, $field, $instance, $langcode, &$items) { }