You are here

function scald_context_load in Scald: Media Management made easy 7

Load callback for the %scald_context placeholder.

Currently not yet used in the menu system, but only used to check in #machine_name elements.

2 calls to scald_context_load()
scald_admin_context_form_submit in includes/scald.admin.inc
Form submission handler for scald_admin_context_form().
scald_context_type_features_export in ./scald.features.inc
Implements hook_features_export().
1 string reference to 'scald_context_load'
scald_admin_context_form in includes/scald.admin.inc
Form constructor for the context editing form.

File

./scald.module, line 2384
The Scald Core, which handles all Scald Registries and dispatch.

Code

function scald_context_load($context) {
  $contexts = scald_contexts();
  if (isset($contexts[$context])) {
    return $contexts[$context];
  }
  return FALSE;
}