You are here

function scald_settings_form in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 includes/scald.admin.inc \scald_settings_form()

Generates Scald admin settings form.

1 string reference to 'scald_settings_form'
scald_menu in ./scald.module
Implementation of hook_menu().

File

./scald.admin.inc, line 803

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' => 'Always rebuild rendered content',
    '#description' => "By default, Scald tries to agressively cache the atom's\n      rendered content, by context and by actions available to the user viewing\n      it. Checking this box, Scald will re-render the atom each time. This is a\n      massive performance hit.",
  );
  return system_settings_form($form);
}