You are here

function pminvoice_admin_settings in Drupal PM (Project Management) 7

Admin settings form for pminvoice module

1 string reference to 'pminvoice_admin_settings'
pminvoice_menu in pminvoice/pminvoice.module
Implements hook_menu().

File

pminvoice/pminvoice.module, line 786
1: Hooks (help, perm, init, menu, theme, node_info) 2: Access functions 3: Load organization and project details 4: Invoice create / edit form 5: Invoice node manipulation functions 6: Admin settings 7: Views hook 8: Project Managementinvoiceitem…

Code

function pminvoice_admin_settings() {
  $form = array();
  $form['pminvoice_hours_per_day'] = array(
    '#type' => 'textfield',
    '#title' => t('Number of hours in a day'),
    '#default_value' => variable_get('pminvoice_hours_per_day', 8),
    '#description' => t('Number of hours in a day, used for calculating the daily rate.'),
    '#size' => 3,
  );
  $form['pminvoice_payment_modes'] = array(
    '#type' => 'textarea',
    '#title' => t('Modes for invoice payment'),
    '#default_value' => variable_get('pminvoice_payment_modes', ''),
    '#description' => t('Modes for invoice payment'),
  );
  $form['pminvoice_payment_terms'] = array(
    '#type' => 'textfield',
    '#title' => t('Payment terms'),
    '#default_value' => variable_get('pminvoice_payment_terms', t('Due on receipt')),
    '#description' => t('Payment terms'),
    '#size' => 50,
  );
  return system_settings_form($form);
}