You are here

function pathologic_configuration_form in Pathologic 7.3

Form callback for the Pathologic configuration form.

1 string reference to 'pathologic_configuration_form'
pathologic_menu in ./pathologic.module
Implements hook_menu().

File

./pathologic.admin.inc, line 11
Configuration form for Pathologic.

Code

function pathologic_configuration_form($form, $form_state) {
  $form['reminder'] = array(
    '#type' => 'markup',
    '#markup' => '<p>' . t('Reminder: The settings on this form only affect text formats for which Pathologic is configured to use the global Pathologic settings; if it&rsquo;s configured to use per-format settings, these settings will have no effect. If you have upgraded to the current 7.x-3.x version of Pathologic from version 7.x-2.x, all of your current formats will use their existing per-format settings by default, so that behavior will be the same as the 7.x-2.x version until they are configured to use the global settings instead. Please <a href="!docs">consult Pathologic&rsquo;s documentation</a> for a step-by-step guide to configuring Pathologic.', array(
      '!docs' => 'https://www.drupal.org/node/257026',
    )) . '</p>',
    '#weight' => 0,
  );
  $config_form = _pathologic_configuration_form(array(
    'protocol_style' => variable_get('pathologic_protocol_style', 'full'),
    'local_paths' => variable_get('pathologic_local_paths', ''),
  ));
  $form['pathologic_protocol_style'] = $config_form['protocol_style'];
  $form['pathologic_local_paths'] = $config_form['local_paths'];
  return system_settings_form($form);
}