function scald_settings_form in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 scald.admin.inc \scald_settings_form()
Generates Scald admin settings form.
1 string reference to 'scald_settings_form'
- scald_menu in ./
scald.module - Implements hook_menu().
File
- includes/
scald.admin.inc, line 597
Code
function scald_settings_form() {
$form = array();
$form['intro'] = array(
'#value' => t("\n <h3>Scald Settings</h3>\n <p>Below you'll find some general Scald settings. Beware that some of\n them are very useful for debugging, but may completely kill performance.\n Use with caution.</p>\n "),
);
$form['scald_always_rebuild'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('scald_always_rebuild', FALSE),
'#title' => t('Always rebuild rendered content'),
'#description' => t("By default, Scald tries to agressively cache the atom's rendered content, by context and by actions available to the user viewing it. Checking this box, Scald will re-render the atom each time. This is a massive performance hit."),
);
// Scald tags vocabulary configuration.
$options = array();
$vocabularies = taxonomy_get_vocabularies();
foreach ($vocabularies as $vocabulary) {
$options[$vocabulary->machine_name] = $vocabulary->name;
}
$form['scald_tags_vocabulary'] = array(
'#type' => 'select',
'#title' => t('Vocabulary used for tags storing'),
'#description' => t('By default, Scald uses its own vocabulary to store atoms tags, you can override it here.'),
'#options' => $options,
'#default_value' => variable_get('scald_tags_vocabulary', 0),
);
// Add our custom submit handler.
$form['#submit'][] = 'scald_settings_form_submit';
return system_settings_form($form);
}