You are here

function hook_media_widget_multiple_alter in D7 Media 7.3

Same name and namespace in other branches
  1. 7.4 media.api.php \hook_media_widget_multiple_alter()
  2. 7.2 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

theme_media_widget_multiple()

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';
}