function scald_contexts_public in Scald: Media Management made easy 7
Returns the list of public context.
8 calls to scald_contexts_public()
- atom_reference_field_formatter_info in modules/
fields/ atom_reference/ atom_reference.module - Implements hook_field_formatter_info().
- atom_reference_field_widget_form in modules/
fields/ atom_reference/ atom_reference.module - Implements hook_field_widget_form.
- atom_reference_field_widget_settings_form in modules/
fields/ atom_reference/ atom_reference.module - Implements hook_field_widget_settings_form.
- dnd_scald_wysiwyg_context_list in modules/
library/ dnd/ dnd.module - Get the list of Scald contexts that can be used in a WYSIWYG, keyed by type.
- mee_form_alter in modules/
fields/ mee/ mee.module - Implements hook_form_alter().
File
- ./
scald.module, line 129 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_contexts_public($reset = FALSE) {
$public = array();
$contexts = scald_contexts($reset);
foreach ($contexts as $name => $context) {
if (empty($context['hidden'])) {
$public[$name] = $context;
}
}
return $public;
}