diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-30 03:12:03 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-30 03:12:03 +0000 |
commit | 5b17c1eb04fd09adcc9dc2b5d0fbd6aabe027252 (patch) | |
tree | 50fd8a9e0577be020af9e3a682858fc8233093ad /modules/field/field.info.inc | |
parent | 6d5d8dccc4fabd7f995d2e866e9029407ed62c8a (diff) | |
download | brdo-5b17c1eb04fd09adcc9dc2b5d0fbd6aabe027252.tar.gz brdo-5b17c1eb04fd09adcc9dc2b5d0fbd6aabe027252.tar.bz2 |
#502522 by yched: Allow drupal_alter() on various Field API meta-hooks.
Diffstat (limited to 'modules/field/field.info.inc')
-rw-r--r-- | modules/field/field.info.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/field/field.info.inc b/modules/field/field.info.inc index 97e18fd61..3eb1d2e33 100644 --- a/modules/field/field.info.inc +++ b/modules/field/field.info.inc @@ -98,6 +98,7 @@ function _field_info_collate_types($reset = FALSE) { $info['field types'][$name]['module'] = $module; } } + drupal_alter('field_info', $info['field types']); // Populate widget types. foreach (module_implements('field_widget_info') as $module) { @@ -107,6 +108,7 @@ function _field_info_collate_types($reset = FALSE) { $info['widget types'][$name]['module'] = $module; } } + drupal_alter('field_widget_info', $info['widget types']); // Populate formatters. foreach (module_implements('field_formatter_info') as $module) { @@ -116,6 +118,7 @@ function _field_info_collate_types($reset = FALSE) { $info['formatter types'][$name]['module'] = $module; } } + drupal_alter('field_formatter_info', $info['formatter types']); // Populate information about 'fieldable' entities. foreach (module_implements('fieldable_info') as $module) { @@ -138,6 +141,7 @@ function _field_info_collate_types($reset = FALSE) { $info['fieldable types'][$name]['module'] = $module; } } + drupal_alter('fieldable_info', $info['fieldable types']); cache_set('field_info_types', $info, 'cache_field'); } |