Commit a051e1c1 authored by Tessa Bakker's avatar Tessa Bakker Committed by joseph.olstad

Issue #2394487 by Tessa Bakker: Allow altering the table in theme_media_widget_multiple()

parent 49f2c853
......@@ -551,10 +551,14 @@ function theme_media_widget_multiple($variables) {
);
}
$table = array('header' => $headers, 'rows' => $rows, 'attributes' => array('id' => $table_id));
drupal_alter('media_widget_multiple', $table, $element);
drupal_add_tabledrag($table_id, 'order', 'sibling', $weight_class);
$output = '';
$output = empty($rows) ? '' : theme('table', array('header' => $headers, 'rows' => $rows, 'attributes' => array('id' => $table_id)));
$output = empty($rows) ? '' : theme('table', $table);
$output .= drupal_render_children($element);
return $output;
}
......
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