function dnd_scald_wysiwyg_context_slugs in Scald: Media Management made easy 7
Get the list of Scald contexts machine names that are allowed in WYSIWYG.
5 calls to dnd_scald_wysiwyg_context_slugs()
- dnd_library in modules/
library/ dnd/ dnd.module - Implements hook_library().
- mee_ajax_widget_expand in modules/
fields/ mee/ mee.module - Ajax callback: returns the expanded HTML atom widget.
- mee_field_attach_view_alter in modules/
fields/ mee/ mee.module - Implements hook_field_attach_view_alter.
- mee_field_widget_form_alter in modules/
fields/ mee/ mee.module - Implements hook_field_widget_form_alter().
- mee_panels_pane_content_alter in modules/
fields/ mee/ mee.module - Implements hook_panels_pane_content_alter().
File
- modules/
library/ dnd/ dnd.module, line 78
Code
function dnd_scald_wysiwyg_context_slugs() {
$contexts_type = dnd_scald_wysiwyg_context_list();
$slugs = array();
foreach ($contexts_type as $contexts) {
foreach ($contexts as $slug => $label) {
$slugs[$slug] = $slug;
}
}
return array_values($slugs);
}