summaryrefslogtreecommitdiff
path: root/modules/field/field.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-12 05:22:57 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-12 05:22:57 +0000
commit8d3eaa1ccf1e7f7d20ecbb19a77e39c028a72706 (patch)
tree7dfe5c496a2dcfc8b4940e72babb48fc67112cc5 /modules/field/field.module
parent33b09cc5eb6f602e8007ce4cf799b30aacc4021e (diff)
downloadbrdo-8d3eaa1ccf1e7f7d20ecbb19a77e39c028a72706.tar.gz
brdo-8d3eaa1ccf1e7f7d20ecbb19a77e39c028a72706.tar.bz2
#560780 by quicksketch, ksenzee, Arancaytar, yched, and arianek: Added Image Field to image.module. Hellooooo, native image handling in core! :D
Diffstat (limited to 'modules/field/field.module')
-rw-r--r--modules/field/field.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/field/field.module b/modules/field/field.module
index 080091b68..0a14e084d 100644
--- a/modules/field/field.module
+++ b/modules/field/field.module
@@ -170,9 +170,12 @@ function field_theme() {
);
$field_formatters = field_info_formatter_types(NULL);
foreach ($field_formatters as $key => $field_formatter) {
- $items["field_formatter_$key"] = array(
+ $items['field_formatter_' . $key] = array(
'arguments' => array('element' => NULL),
);
+ if (isset($field_formatter['theme'])) {
+ $items['field_formatter_' . $key] += $field_formatter['theme'];
+ }
}
return $items;
}