Commit c169a34b authored by stefan.korn's avatar stefan.korn Committed by joseph.olstad

Issue #2949346 by stefan.korn: Add hook_media_widget_multiple_alter() to media.api.php

parent 92ab9d76
......@@ -135,3 +135,18 @@ function hook_media_browser_params_alter(&$stored_params) {
$stored_params['types'][] = 'document';
unset($stored_params['enabledPlugins'][0]);
}
/**
*
* Alter the media multiple elements widget
*
* @param $table
* the table of elements that will be rendered via theme_table()
* @param $element
* elements that are actually attached
*
* @see theme_media_widget_multiple()
*/
function hook_media_widget_multiple_alter(&$table, &$element) {
$table['attributes']['class'][] = 'myclass';
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment