function hook_media_widget_multiple_alter in D7 Media 7.4
Same name and namespace in other branches
- 7.2 media.api.php \hook_media_widget_multiple_alter()
- 7.3 media.api.php \hook_media_widget_multiple_alter()
Alter the media multiple elements widget
Parameters
$table: the table of elements that will be rendered via theme_table()
$element: elements that are actually attached
See also
1 invocation of hook_media_widget_multiple_alter()
- theme_media_widget_multiple in includes/
media.fields.inc - Returns HTML for a group of media widgets.
File
- ./
media.api.php, line 150 - Hooks provided by the Media module.
Code
function hook_media_widget_multiple_alter(&$table, &$element) {
$table['attributes']['class'][] = 'myclass';
}