function _media_gallery_attach_css_resources in Media Gallery 7
Same name and namespace in other branches
- 7.2 media_gallery.module \_media_gallery_attach_css_resources()
Helper function to attach CSS for media galleries to a render element.
3 calls to _media_gallery_attach_css_resources()
- media_gallery_item_view in ./
media_gallery.fields.inc - Constructs a drupal_render() array for a media entity displayed within a gallery.
- media_gallery_node_view_alter in ./
media_gallery.module - Implements hook_node_view_alter().
- _media_gallery_attach_form_resources in ./
media_gallery.module - Helper function to attach JS/CSS for media galleries to a form element.
File
- ./
media_gallery.module, line 1143
Code
function _media_gallery_attach_css_resources(&$element) {
$path = drupal_get_path('module', 'media_gallery');
$element['#attached']['css'][] = $path . '/media_gallery.css';
$element['#attached']['css'][] = array(
'data' => $path . '/media_gallery.ie7.css',
'browsers' => array(
'IE' => 'lt IE 8',
'!IE' => FALSE,
),
);
}