function scald_admin_contexts in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 scald.admin.inc \scald_admin_contexts()
The Scald Admin page for Scald Contexts.
1 string reference to 'scald_admin_contexts'
- scald_menu in ./
scald.module - Implements hook_menu().
File
- includes/
scald.admin.inc, line 428
Code
function scald_admin_contexts($type) {
$content = '<h3>' . t('Scald Rendering Contexts') . '</h3>';
$content .= '<p>' . t('Scald Rendering Contexts are something like view modes for Scald atoms. Any atom can be rendered in any supported context and the context determines what that rendering looks like, which player it uses, and what language (XHTML etc.) it is in.') . '</p>';
$content .= '<p>' . t('If a context is <em>parseable</em>, that means that its output is wrapped in HTML comments (currently this feature only works reliably for contexts which have a render language of XHTML) which make it possible for Scald to uniquely identify the atom based on the rendering. For instance, if a WYSIWYG editor is being used in some text areas and Scald atoms should be included in the WYSIWYG preview of the text, a context can be chosen and specified as parseable. That ensures that when the textarea is submitted, Scald will be able to determine which atoms are present in the textarea, convert the rendered versions to Scald Atom Shorthand (SAS).') . '</p>';
$output[] = array(
'#markup' => $content,
);
$output[] = drupal_get_form('scald_admin_contexts_form', $type);
return $output;
}