summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTessaBakker2017-05-25 21:47:38 (GMT)
committerolstjos2017-05-25 21:47:38 (GMT)
commita051e1c158c0e8e42f83332585f4fe2d1c1e7ddc (patch)
tree02db9bfd824aaec6ed245d96db669ce52b1e9f18
parent49f2c85378cd5bdfbff6351224674882a2e4fcc5 (diff)
Issue #2394487 by Tessa Bakker: Allow altering the table in theme_media_widget_multiple()
-rw-r--r--includes/media.fields.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/media.fields.inc b/includes/media.fields.inc
index 9105fd1..96968c9 100644
--- a/includes/media.fields.inc
+++ b/includes/media.fields.inc
@@ -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;
}