You are here

function pmtimetracking_admin_settings in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pmtimetracking/pmtimetracking.module \pmtimetracking_admin_settings()
  2. 7.3 pmtimetracking/pmtimetracking.module \pmtimetracking_admin_settings()
  3. 7.2 pmtimetracking/pmtimetracking.module \pmtimetracking_admin_settings()

Callback for the pmtimetracking admin settings page.

1 string reference to 'pmtimetracking_admin_settings'
pmtimetracking_menu in pmtimetracking/pmtimetracking.module
Implements hook_menu().

File

pmtimetracking/pmtimetracking.module, line 617
Main module functions for PM Timetracking.

Code

function pmtimetracking_admin_settings() {
  $form = array();
  $form['pmtimetracking_auto_duration'] = array(
    '#type' => 'checkbox',
    '#title' => t('Always set billing duration to duration value.'),
    '#default_value' => variable_get('pmtimetracking_auto_duration', TRUE),
    '#description' => t('When checked, Project Management will set the billing duration equal to the duration each time the node is saved. The duration is always calculated from the start and end times.'),
    '#size' => 5,
  );
  return system_settings_form($form);
}