You are here

function _scald_system_contexts in Scald: Media Management made easy 7

Defines a list of built-in contexts for internal used.

Those contexts are different from that are created through the UI.

2 calls to _scald_system_contexts()
scald_scald_contexts in ./scald.module
Implements hook_scald_contexts().
scald_scald_render in ./scald.module
Implements hook_scald_render().

File

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

Code

function _scald_system_contexts() {
  return array(
    'no-access' => array(
      'title' => t('No Access'),
      'description' => t('Built-in Context used when an Atom cannot be viewed by the current User.'),
      'render_language' => 'XHTML',
      'parseable' => TRUE,
      'hidden' => TRUE,
      'formats' => array(),
    ),
    'invalid-id' => array(
      'title' => t('Invalid ID'),
      'description' => t('Built-in Context used when an Invalid Scald ID is provided to the rendering stack.'),
      'render_language' => 'XHTML',
      'parseable' => TRUE,
      'hidden' => TRUE,
      'formats' => array(),
    ),
    'deleted' => array(
      'title' => t('Deleted'),
      'description' => t('Built-in Context used when an Atom is no longer present in the Registry (but once was).'),
      'render_language' => 'XHTML',
      'parseable' => TRUE,
      'hidden' => TRUE,
      'formats' => array(),
    ),
    'title' => array(
      'title' => t('Title'),
      'description' => t('Literally *just* the title as plain text, though the language is specified as XHTML for simplicity.'),
      'render_language' => 'XHTML',
      'parseable' => FALSE,
      'formats' => array(),
    ),
    'full' => array(
      'title' => t('Full page'),
      'description' => t('Built-in Context used when pre-viewing an atom.'),
      'render_language' => 'XHTML',
      'parseable' => TRUE,
      'formats' => array(),
    ),
  );
}