Simplifying the configuration menu

This commit is contained in:
Manuel Cillero 2017-10-07 13:12:10 +02:00
parent 9777b4c1ba
commit feb393faa4
11 changed files with 32 additions and 28 deletions

View file

@ -841,7 +841,7 @@ function storminvoice_admin_settings() {
'#type' => 'textfield',
'#title' => t('Number of days for invoice payment'),
'#default_value' => variable_get('storminvoice_payment_days', 30),
'#description' => t('Default number of days for invoice payment'),
'#description' => t('Default number of days for invoice payment.'),
'#size' => 5,
);
@ -857,14 +857,14 @@ function storminvoice_admin_settings() {
'#type' => 'textarea',
'#title' => t('Modes for invoice payment'),
'#default_value' => variable_get('storminvoice_payment_modes', ''),
'#description' => t('Modes for invoice payment'),
'#description' => t('Modes for invoice payment.'),
);
$form['storminvoice_cover_note_subject'] = array(
'#type' => 'textfield',
'#title' => t('Cover note subject'),
'#default_value' => variable_get('storminvoice_cover_note_subject', t('Invoice from !site', array('!site' => variable_get('site_name', 'STORM')))),
'#description' => t('Default subject for cover note'),
'#description' => t('Default subject for cover note.'),
'#size' => 50,
);
@ -872,14 +872,14 @@ function storminvoice_admin_settings() {
'#type' => 'textarea',
'#title' => t('Cover note for invoice'),
'#default_value' => variable_get('storminvoice_cover_note', 'Hope this comes easy to you.'),
'#description' => t('Default cover note for pdf invoice sent by email'),
'#description' => t('Default cover note for pdf invoice sent by email.'),
);
$form['storminvoice_payment_terms'] = array(
'#type' => 'textfield',
'#title' => t('Payment terms'),
'#default_value' => variable_get('storminvoice_payment_terms', t('Due on receipt')),
'#description' => t('Payment terms'),
'#description' => t('Payment terms.'),
'#size' => 50,
);