You are here

function html_title_admin_settings in HTML Title 7

Same name and namespace in other branches
  1. 6 html_title.admin.inc \html_title_admin_settings()

Form definition; admin settings.

1 string reference to 'html_title_admin_settings'
html_title_menu in ./html_title.module
Implementation of hook_menu()

File

./html_title.admin.inc, line 13
Module settings and configuration administration UI.

Code

function html_title_admin_settings() {
  $form['html_title_allowed_elements'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Available tags'),
    '#default_value' => variable_get('html_title_allowed_elements', array(
      'em',
      'sub',
      'sup',
    )),
    '#options' => array(
      'abbr' => check_plain('<abbr>'),
      'b' => check_plain('<b>'),
      'bdi' => check_plain('<bdi>'),
      'cite' => check_plain('<cite>'),
      'code' => check_plain('<code>'),
      'em' => check_plain('<em>'),
      'i' => check_plain('<i>'),
      'strong' => check_plain('<strong>'),
      'sub' => check_plain('<sub>'),
      'sup' => check_plain('<sup>'),
      'wbr' => check_plain('<wbr>'),
    ),
  );
  return system_settings_form($form);
}