function scald_admin_contexts in Scald: Media Management made easy 6
Same name and namespace in other branches
- 7 includes/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 - Implementation of hook_menu().
File
- ./
scald.admin.inc, line 260
Code
function scald_admin_contexts() {
$scald_config = variable_get('scald_config', 0);
$content = t('
<h3>Scald Rendering Contexts</h3>
<br>
<p>Scald Rendering Contexts are something like themes for Scald Atoms. Any Atom can be rendered in any Context and the Context determines what that rendering looks like and what language it is in.</p>
<p>If a Context is "parseable", 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 Core 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 Core will be able to determine which Atoms are present in the textarea, convert the rendered versions to Scald Atom Shorthand and ensure proper parsing by the Scald Atom Shorthand Input Filter.</p>
');
return $content . drupal_get_form('scald_admin_contexts_form');
}