You are here

function modal_page_settings in Modal 7

Function modal_page_settings.

1 string reference to 'modal_page_settings'
modal_page_menu in ./modal_page.module
Implements hook_menu().

File

./modal_page.module, line 149
Main file for the Modal Page.

Code

function modal_page_settings($form, &$form_state) {
  $form['modal_page_modals'] = array(
    '#title' => t('Modal settings.'),
    '#type' => 'textarea',
    '#description' => t('Insert values with format: <br><br><b>Page|Title|Text|Button</b> &lt;front&gt; is the front page. <br><br> e.g.  <b>Home|Welcome|Welcome to our new website|Thanks</b>'),
    '#default_value' => variable_get('modal_page_modals', ''),
    '#size' => 10,
    '#resizable' => FALSE,
  );
  $form['modal_page_advanced_settings'] = array(
    '#type' => 'fieldset',
    '#title' => t('Advanced'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $form['modal_page_advanced_settings']['modal_page_allowed_tags'] = array(
    '#title' => t('Allowed HTML Tags in the Text (filter_xss)'),
    '#type' => 'textarea',
    '#description' => t('Modal Page use filter_xss function to Filters HTML to prevent cross-site-scripting (XSS) vulnerabilities. <br>Optionally you can insert your allowed tags. Use one per line. E.g:<ul><li>a</li><li>strong</li><li>ul</li><li>li</li>'),
    '#default_value' => variable_get('modal_page_allowed_tags', ''),
    '#size' => 10,
    '#resizable' => FALSE,
  );
  $form['modal_page_advanced_settings']['modal_page_external_js'] = array(
    '#title' => t('Use external jQuery and Bootstrap libraries'),
    '#type' => 'checkbox',
    '#description' => t('Uncheck this box is want to use local jQuery and Bootstrap libraries.'),
    '#default_value' => variable_get('modal_page_external_js', TRUE),
  );
  return system_settings_form($form);
}