You are here

function scald_scald_render in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 scald.module \scald_scald_render()

Implementation of hook_scald_render().

2 calls to scald_scald_render()
scald_render in ./scald.module
Render a Scald Atom
theme_mee_formatter_default in mee/mee.module

File

./scald.module, line 2548

Code

function scald_scald_render($atom, $context, $options = NULL) {
  switch ($context) {
    case 'no-access':
      return theme('scald_render_error', $context, t('You do not have access to view this Atom.'));
      break;
    case 'invalid-id':
      return theme('scald_render_error', $context, t('Invalid Scald ID.'));
      break;
    case 'deleted':
      return theme('scald_render_error', $context, t('Atom deleted!'));
      break;
    case 'title':
    default:
      return $atom->rendered->title;
      break;
  }
}