You are here

function pet_settings in Previewable email templates 7

PET setting form

1 string reference to 'pet_settings'
pet_menu in ./pet.module
Implements hook_menu().

File

includes/pet.admin.inc, line 559
Contains pages for creating, editing, and deleting previewable email templates (PETs).

Code

function pet_settings($form, $form_state) {
  $form['logging'] = array(
    '#type' => 'fieldset',
    '#title' => t('PET log settings'),
    '#collapsible' => FALSE,
  );
  $options = array(
    0 => t('Log everything.'),
    1 => t('Log errors only.'),
    2 => t('No logging, display error on screen, useful for debugging.'),
  );
  $form['logging']['pet_logging'] = array(
    '#type' => 'radios',
    '#title' => t('Log setting'),
    '#options' => $options,
    '#default_value' => variable_get('pet_logging', 0),
  );
  return system_settings_form($form);
}