You are here

function scald_type_load in Scald: Media Management made easy 7

Load callback for the %scald_type placeholder.

3 calls to scald_type_load()
scald_atom_add_form_options_submit in includes/scald.pages.inc
Handles the final atom creation step form submission.
scald_audio_scald_add_form in modules/providers/scald_audio/scald_audio.module
Implements hook_scald_add_form().
scald_image_scald_add_form in modules/providers/scald_image/scald_image.module
Implements hook_scald_add_form().

File

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

Code

function scald_type_load($type) {
  $types = scald_types();
  if (isset($types[$type])) {
    return $types[$type];
  }
  return FALSE;
}