function scald_context_save in Scald: Media Management made easy 7
Saves a custom context.
This function saves the context in a centralized variable. It is only used for contexts created through the Scald UI.
@codingStandardsIgnoreStart
Parameters
array $context: The context definition.
1 call to scald_context_save()
- scald_admin_context_form_submit in includes/
scald.admin.inc - Form submission handler for scald_admin_context_form().
File
- ./
scald.module, line 2403 - The Scald Core, which handles all Scald Registries and dispatch.
Code
function scald_context_save($context) {
// @codingStandardsIgnoreEnd
$contexts = variable_get('scald_custom_contexts', array());
$contexts[$context['name']] = $context;
variable_set('scald_custom_contexts', $contexts);
}