diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-05 15:05:05 +0000 |
commit | a539b0e00dedddfea36d4a96b788e42923056a78 (patch) | |
tree | fcf4876cbfa5abef45c40e134b99bc30944fde14 /modules/field | |
parent | 2431df84a2a6afb07a5214ef748cded72ac87947 (diff) | |
download | brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.gz brdo-a539b0e00dedddfea36d4a96b788e42923056a78.tar.bz2 |
- Patch by #565496 by dropcube, pwolanin: changed Allow dynamic attaching of other types of stuff to render() structures.
Diffstat (limited to 'modules/field')
-rw-r--r-- | modules/field/field.attach.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index 1cdd3b0c2..4cf57c483 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -490,7 +490,7 @@ function field_attach_form($obj_type, $object, &$form, &$form_state, $langcode = // Add custom weight handling. list($id, $vid, $bundle) = field_attach_extract_ids($obj_type, $object); - $form['#attached_css'][] = drupal_get_path('module', 'field') . '/theme/field.css'; + $form['#attached']['css'][] = drupal_get_path('module', 'field') . '/theme/field.css'; $form['#pre_render'][] = '_field_extra_weights_pre_render'; $form['#extra_fields'] = field_extra_fields($bundle); @@ -1090,7 +1090,7 @@ function field_attach_view($obj_type, $object, $build_mode = 'full', $langcode = // Add custom weight handling. list($id, $vid, $bundle) = field_attach_extract_ids($obj_type, $object); - $output['#attached_css'][] = drupal_get_path('module', 'field') . '/theme/field.css'; + $output['#attached']['css'][] = drupal_get_path('module', 'field') . '/theme/field.css'; $output['#pre_render'][] = '_field_extra_weights_pre_render'; $output['#extra_fields'] = field_extra_fields($bundle); |