You are here

function scald_contexts in Scald: Media Management made easy 7

Get available Scald Contexts.

This function determines and returns a structured array specifying all the currently provided Scald Contexts. The Scald Contexts array is cached in the Drupal variables table and only rebuilt upon request from this function. The Scald Contexts array has the following format: array( 'context-slug' => array( 'provider' => 'provider-name', 'render_language' => 'language-slug', // e.g. 'XHTML' 'type_format' => array( 'type-slug' => array( 'file_format' => 'format-slug' 'transcoder' => 'transcoder-slug' ), ... ), ), ... );

Return value

array The Scald Contexts array

17 calls to scald_contexts()
atom_reference_field_formatter_view in modules/fields/atom_reference/atom_reference.module
Implements hook_field_formatter_view.
ScaldAtomController::addType in includes/ScaldAtomController.inc
Add a Scald unified type.
ScaldAtomController::save in includes/ScaldAtomController.inc
Save changes to a Scald Atom, or create a new one.
ScaldDnDTestCase::testScaldDndLibrary in tests/scald.test
Test Scald DnD Library.
scald_admin_contexts_form in includes/scald.admin.inc
Form for admin settings for Scald Contexts.

... See full list

1 string reference to 'scald_contexts'
scald_update_7000 in ./scald.install
Updates the schema from the 6.x version.

File

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

Code

function scald_contexts($reset = FALSE) {
  return _scald_get_info('contexts', $reset);
}