diff options
Diffstat (limited to 'modules/field')
-rw-r--r-- | modules/field/field.attach.inc | 2 | ||||
-rw-r--r-- | modules/field/field.install | 2 | ||||
-rw-r--r-- | modules/field/field.module | 16 | ||||
-rw-r--r-- | modules/field/field.multilingual.inc | 2 | ||||
-rw-r--r-- | modules/field/modules/field_sql_storage/field_sql_storage.install | 2 | ||||
-rw-r--r-- | modules/field/modules/field_sql_storage/field_sql_storage.module | 32 | ||||
-rw-r--r-- | modules/field/modules/list/list.module | 16 | ||||
-rw-r--r-- | modules/field/modules/number/number.module | 22 | ||||
-rw-r--r-- | modules/field/modules/options/options.module | 8 | ||||
-rw-r--r-- | modules/field/modules/text/text.module | 26 | ||||
-rw-r--r-- | modules/field/tests/field_test.field.inc | 2 | ||||
-rw-r--r-- | modules/field/tests/field_test.install | 4 | ||||
-rw-r--r-- | modules/field/tests/field_test.module | 2 |
13 files changed, 68 insertions, 68 deletions
diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index b5c0b0e90..01b46b13e 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -1264,7 +1264,7 @@ function field_attach_extra_weight($bundle, $pseudo_field) { } /** - * Implement hook_node_prepare_translation. + * Implements hook_node_prepare_translation(). * * TODO D7: We do not yet know if this really belongs in Field API. */ diff --git a/modules/field/field.install b/modules/field/field.install index 33d29c065..75724c429 100644 --- a/modules/field/field.install +++ b/modules/field/field.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema. + * Implements hook_schema(). */ function field_schema() { // Static (meta) tables. diff --git a/modules/field/field.module b/modules/field/field.module index a8769bde0..2bff9cea1 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -129,14 +129,14 @@ class FieldException extends Exception {} class FieldUpdateForbiddenException extends FieldException {} /** - * Implement hook_flush_caches. + * Implements hook_flush_caches(). */ function field_flush_caches() { return array('cache_field'); } /** - * Implement hook_help(). + * Implements hook_help(). */ function field_help($path, $arg) { switch ($path) { @@ -167,7 +167,7 @@ function field_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function field_theme() { $path = drupal_get_path('module', 'field') . '/theme'; @@ -194,7 +194,7 @@ function field_theme() { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Purges some deleted Field API data, if any exists. */ @@ -204,14 +204,14 @@ function field_cron() { } /** - * Implement hook_modules_installed(). + * Implements hook_modules_installed(). */ function field_modules_installed($modules) { field_cache_clear(); } /** - * Implement hook_modules_uninstalled(). + * Implements hook_modules_uninstalled(). */ function field_modules_uninstalled($modules) { module_load_include('inc', 'field', 'field.crud'); @@ -222,7 +222,7 @@ function field_modules_uninstalled($modules) { } /** - * Implement hook_modules_enabled(). + * Implements hook_modules_enabled(). */ function field_modules_enabled($modules) { foreach ($modules as $module) { @@ -232,7 +232,7 @@ function field_modules_enabled($modules) { } /** - * Implement hook_modules_disabled(). + * Implements hook_modules_disabled(). */ function field_modules_disabled($modules) { foreach ($modules as $module) { diff --git a/modules/field/field.multilingual.inc b/modules/field/field.multilingual.inc index d492b358d..bbe3a75d1 100644 --- a/modules/field/field.multilingual.inc +++ b/modules/field/field.multilingual.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_multilingual_settings_changed(). + * Implements hook_multilingual_settings_changed(). */ function field_multilingual_settings_changed() { field_info_cache_clear(); diff --git a/modules/field/modules/field_sql_storage/field_sql_storage.install b/modules/field/modules/field_sql_storage/field_sql_storage.install index 7ab6a8cf9..2193c6d57 100644 --- a/modules/field/modules/field_sql_storage/field_sql_storage.install +++ b/modules/field/modules/field_sql_storage/field_sql_storage.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function field_sql_storage_schema() { $schema = array(); diff --git a/modules/field/modules/field_sql_storage/field_sql_storage.module b/modules/field/modules/field_sql_storage/field_sql_storage.module index 23b138f38..20ccc690b 100644 --- a/modules/field/modules/field_sql_storage/field_sql_storage.module +++ b/modules/field/modules/field_sql_storage/field_sql_storage.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function field_sql_storage_help($path, $arg) { switch ($path) { @@ -18,7 +18,7 @@ function field_sql_storage_help($path, $arg) { } /** - * Implement hook_field_storage_info(). + * Implements hook_field_storage_info(). */ function field_sql_storage_field_storage_info() { return array( @@ -206,7 +206,7 @@ function _field_sql_storage_schema($field) { } /** - * Implement hook_field_storage_create_field(). + * Implements hook_field_storage_create_field(). */ function field_sql_storage_field_storage_create_field($field) { $schema = _field_sql_storage_schema($field); @@ -217,7 +217,7 @@ function field_sql_storage_field_storage_create_field($field) { } /** - * Implement hook_field_update_field_forbid(). + * Implements hook_field_update_field_forbid(). * * Forbid any field update that changes column definitions if there is * any data. @@ -229,7 +229,7 @@ function field_sql_storage_field_update_forbid($field, $prior_field, $has_data) } /** - * Implement hook_field_storage_update_field(). + * Implements hook_field_storage_update_field(). */ function field_sql_storage_field_storage_update_field($field, $prior_field, $has_data) { if (! $has_data) { @@ -274,7 +274,7 @@ function field_sql_storage_field_storage_update_field($field, $prior_field, $has } /** - * Implement hook_field_storage_delete_field(). + * Implements hook_field_storage_delete_field(). */ function field_sql_storage_field_storage_delete_field($field) { // Mark all data associated with the field for deletion. @@ -295,7 +295,7 @@ function field_sql_storage_field_storage_delete_field($field) { } /** - * Implement hook_field_storage_load(). + * Implements hook_field_storage_load(). */ function field_sql_storage_field_storage_load($obj_type, $objects, $age, $fields, $options) { $etid = _field_sql_storage_etid($obj_type); @@ -343,7 +343,7 @@ function field_sql_storage_field_storage_load($obj_type, $objects, $age, $fields } /** - * Implement hook_field_storage_write(). + * Implements hook_field_storage_write(). */ function field_sql_storage_field_storage_write($obj_type, $object, $op, $fields) { list($id, $vid, $bundle) = entity_extract_ids($obj_type, $object); @@ -430,7 +430,7 @@ function field_sql_storage_field_storage_write($obj_type, $object, $op, $fields) } /** - * Implement hook_field_storage_delete(). + * Implements hook_field_storage_delete(). * * This function deletes data for all fields for an object from the database. */ @@ -447,7 +447,7 @@ function field_sql_storage_field_storage_delete($obj_type, $object, $fields) { } /** - * Implement hook_field_storage_purge(). + * Implements hook_field_storage_purge(). * * This function deletes data from the database for a single field on * an object. @@ -469,7 +469,7 @@ function field_sql_storage_field_storage_purge($obj_type, $object, $field, $inst } /** - * Implement hook_field_storage_query(). + * Implements hook_field_storage_query(). */ function field_sql_storage_field_storage_query($field_id, $conditions, $options) { $load_current = $options['age'] == FIELD_LOAD_CURRENT; @@ -591,7 +591,7 @@ function field_sql_storage_field_storage_query($field_id, $conditions, $options) } /** - * Implement hook_field_storage_delete_revision(). + * Implements hook_field_storage_delete_revision(). * * This function actually deletes the data from the database. */ @@ -613,7 +613,7 @@ function field_sql_storage_field_storage_delete_revision($obj_type, $object, $fi } /** - * Implement hook_field_storage_delete_instance(). + * Implements hook_field_storage_delete_instance(). * * This function simply marks for deletion all data associated with the field. */ @@ -635,7 +635,7 @@ function field_sql_storage_field_storage_delete_instance($instance) { } /** - * Implement hook_field_attach_rename_bundle(). + * Implements hook_field_attach_rename_bundle(). */ function field_sql_storage_field_attach_rename_bundle($obj_type, $bundle_old, $bundle_new) { $etid = _field_sql_storage_etid($obj_type); @@ -661,7 +661,7 @@ function field_sql_storage_field_attach_rename_bundle($obj_type, $bundle_old, $b } /** - * Implement hook_field_storage_purge_field(). + * Implements hook_field_storage_purge_field(). * * All field data items and instances have already been purged, so all * that is left is to delete the table. @@ -674,7 +674,7 @@ function field_sql_storage_field_storage_purge_field($field) { } /** - * Implement hook_field_storage_details(). + * Implements hook_field_storage_details(). */ function field_sql_storage_field_storage_details($field, $instance) { $details = array(); diff --git a/modules/field/modules/list/list.module b/modules/field/modules/list/list.module index 64d8441ca..ab2966814 100644 --- a/modules/field/modules/list/list.module +++ b/modules/field/modules/list/list.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function list_field_info() { return array( @@ -43,7 +43,7 @@ function list_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function list_field_schema($field) { switch ($field['type']) { @@ -84,7 +84,7 @@ function list_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). * * @todo: If $has_data, add a form validate function to verify that the * new allowed values do not exclude any keys for which data already @@ -131,7 +131,7 @@ function list_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_create_field(). + * Implements hook_field_create_field(). */ function list_field_create_field($field) { if (array_key_exists($field['type'], list_field_info())) { @@ -142,7 +142,7 @@ function list_field_create_field($field) { } /** - * Implement hook_field_update_field(). + * Implements hook_field_update_field(). */ function list_field_update_field($field, $prior_field, $has_data) { if (array_key_exists($field['type'], list_field_info())) { @@ -252,7 +252,7 @@ function list_allowed_values_validate($element, &$form_state) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'list_illegal_value': The value is not part of the list of allowed values. @@ -272,7 +272,7 @@ function list_field_validate($obj_type, $object, $field, $instance, $langcode, $ } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function list_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -282,7 +282,7 @@ function list_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function list_field_formatter_info() { return array( diff --git a/modules/field/modules/number/number.module b/modules/field/modules/number/number.module index 6b00fadfa..e03b26503 100644 --- a/modules/field/modules/number/number.module +++ b/modules/field/modules/number/number.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_theme_alter(). + * Implements hook_theme_alter(). */ function number_theme_registry_alter(&$theme_registry) { // The number_integer and number_decimal formatters use the same function. @@ -16,7 +16,7 @@ function number_theme_registry_alter(&$theme_registry) { } /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function number_field_info() { return array( @@ -47,7 +47,7 @@ function number_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function number_field_schema($field) { switch ($field['type']) { @@ -86,7 +86,7 @@ function number_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function number_field_settings_form($field, $instance, $has_data) { $settings = $field['settings']; @@ -128,7 +128,7 @@ function number_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function number_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -166,7 +166,7 @@ function number_field_instance_settings_form($field, $instance) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'number_min': The value is smaller than the allowed minimum value. @@ -207,7 +207,7 @@ function number_field_presave($obj_type, $object, $field, $instance, $langcode, } /** - * Implement hook_content_is_empty(). + * Implements hook_content_is_empty(). */ function number_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -217,7 +217,7 @@ function number_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function number_field_formatter_info() { return array( @@ -285,7 +285,7 @@ function theme_field_formatter_number($variables) { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function number_field_widget_info() { return array( @@ -297,7 +297,7 @@ function number_field_widget_info() { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function number_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { $value = isset($items[$delta]['value']) ? $items[$delta]['value'] : ''; @@ -370,7 +370,7 @@ function number_field_widget_validate($element, &$form_state) { } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function number_field_widget_error($element, $error) { form_error($element['value'], $error['message']); diff --git a/modules/field/modules/options/options.module b/modules/field/modules/options/options.module index a05ed375b..74573b4fd 100644 --- a/modules/field/modules/options/options.module +++ b/modules/field/modules/options/options.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_theme(). + * Implements hook_theme(). */ function options_theme() { return array( @@ -18,7 +18,7 @@ function options_theme() { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function options_field_widget_info() { return array( @@ -47,7 +47,7 @@ function options_field_widget_info() { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function options_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { // Abstract over the actual field columns, to allow different field types to @@ -250,7 +250,7 @@ function options_array_transpose($array) { } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function options_field_widget_error($element, $error) { form_error($element, $error['message']); diff --git a/modules/field/modules/text/text.module b/modules/field/modules/text/text.module index 15c846874..abae03be2 100644 --- a/modules/field/modules/text/text.module +++ b/modules/field/modules/text/text.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). * * Field settings: * - max_length: the maximum length for a varchar field. @@ -47,7 +47,7 @@ function text_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function text_field_schema($field) { switch ($field['type']) { @@ -100,7 +100,7 @@ function text_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function text_field_settings_form($field, $instance, $has_data) { $settings = $field['settings']; @@ -121,7 +121,7 @@ function text_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function text_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -148,7 +148,7 @@ function text_field_instance_settings_form($field, $instance) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'text_value_max_length': The value exceeds the maximum length. @@ -181,7 +181,7 @@ function text_field_validate($obj_type, $object, $field, $instance, $langcode, $ } /** - * Implement hook_field_load(). + * Implements hook_field_load(). * * Where possible, generate the sanitized version of each field early so that * it is cached in the field cache. This avoids looking up from the filter cache @@ -213,7 +213,7 @@ function text_field_load($obj_type, $objects, $field, $instances, $langcode, &$i } /** - * Implement hook_field_sanitize(). + * Implements hook_field_sanitize(). * * @see text_field_load() */ @@ -241,7 +241,7 @@ function text_field_sanitize($obj_type, $object, $field, $instance, $langcode, & } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function text_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -251,7 +251,7 @@ function text_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function text_field_formatter_info() { return array( @@ -457,7 +457,7 @@ function text_summary($text, $format = NULL, $size = NULL) { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function text_field_widget_info() { return array( @@ -480,7 +480,7 @@ function text_field_widget_info() { } /** - * Implement hook_field_widget_settings_form(). + * Implements hook_field_widget_settings_form(). */ function text_field_widget_settings_form($field, $instance) { $widget = $instance['widget']; @@ -509,7 +509,7 @@ function text_field_widget_settings_form($field, $instance) { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function text_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base) { $element = $base; @@ -565,7 +565,7 @@ function text_field_widget(&$form, &$form_state, $field, $instance, $langcode, $ } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function text_field_widget_error($element, $error) { switch ($error['error']) { diff --git a/modules/field/tests/field_test.field.inc b/modules/field/tests/field_test.field.inc index 9696df360..0bdc93ea6 100644 --- a/modules/field/tests/field_test.field.inc +++ b/modules/field/tests/field_test.field.inc @@ -236,7 +236,7 @@ function field_test_field_formatter_info() { } /** - * Implement hook_field_formatter_prepare_view(). + * Implements hook_field_formatter_prepare_view(). */ function field_test_field_formatter_prepare_view($obj_type, $objects, $field, $instances, $langcode, &$items, $build_mode) { foreach ($items as $id => $item) { diff --git a/modules/field/tests/field_test.install b/modules/field/tests/field_test.install index 2bb1701bf..72a2deee6 100644 --- a/modules/field/tests/field_test.install +++ b/modules/field/tests/field_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function field_test_install() { // hook_entity_info_alter() needs to be executed as last. @@ -18,7 +18,7 @@ function field_test_install() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function field_test_schema() { $schema['test_entity'] = array( diff --git a/modules/field/tests/field_test.module b/modules/field/tests/field_test.module index b8b07b96c..f7c539604 100644 --- a/modules/field/tests/field_test.module +++ b/modules/field/tests/field_test.module @@ -87,7 +87,7 @@ function field_test_field_test_op_multiple($obj_type, $objects, $field, $instanc } /** - * Implement hook_field_languages(). + * Implements hook_field_languages(). */ function field_test_field_languages($obj_type, $field, &$languages) { if ($field['settings']['test_hook_in']) { |