function cronkeychange_form_system_cron_settings_alter in Cron key change 7
Same name and namespace in other branches
- 8 cronkeychange.module \cronkeychange_form_system_cron_settings_alter()
- 2.x cronkeychange.module \cronkeychange_form_system_cron_settings_alter()
Implements hook_form_FORM_ID_alter().
File
- ./
cronkeychange.module, line 41 - Cron Key Change
Code
function cronkeychange_form_system_cron_settings_alter(&$form, &$form_state, $form_id) {
$form['cronkeychange'] = array(
'#type' => 'fieldset',
'#tree' => FALSE,
'#title' => t('Change cron key'),
'#collapsible' => FALSE,
'#collapsed' => FALSE,
);
$form['cronkeychange']['current'] = array(
'#type' => 'item',
'#title' => t('Current cron key'),
'#markup' => variable_get('cron_key', 'drupal'),
);
$form['cronkeychange']['generate'] = array(
'#type' => 'submit',
'#value' => t('Generate new key'),
'#submit' => array(
'cronkeychange_generate_submit',
),
);
}