summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstefan.korn2018-03-04 22:46:56 (GMT)
committerolstjos2018-03-04 22:46:56 (GMT)
commitc169a34b0b1a73353c6291eef1e023b89ca72f58 (patch)
treede79e5e15f31b3b7b26ce536f132594d6fe4f72f
parent92ab9d76c7cc2f4867d0f6d3e043a442a0d756af (diff)
Issue #2949346 by stefan.korn: Add hook_media_widget_multiple_alter() to media.api.php
-rw-r--r--media.api.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/media.api.php b/media.api.php
index ecde61b..626d7b8 100644
--- a/media.api.php
+++ b/media.api.php
@@ -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';
+}