function warden_form in Warden 7
Same name and namespace in other branches
- 6 warden.admin.inc \warden_form()
Page callback: System settings settings.
See also
1 string reference to 'warden_form'
- warden_menu in ./
warden.module - Implements hook_menu().
File
- ./
warden.admin.inc, line 13 - Admin forms for warden
Code
function warden_form($form, &$form_state) {
$warden_path = variable_get('warden_server_host_path', '');
$local_token = _warden_get_local_token();
if (empty($warden_path)) {
drupal_set_message(t('You are missing some configuration in the sites settings.php file. Please read the README file for more details.'), 'error');
return $form;
}
$form['local_token'] = array(
'#markup' => '<p>' . t('Site security token: %token', array(
'%token' => $local_token,
)) . '</p>',
);
$form['message'] = array(
'#markup' => '<p>' . t('To add this site to your Warden dashboard click the button below. Read the README file which comes with the module for configuration information.') . '</p>',
);
$form['add_site'] = array(
'#type' => 'submit',
'#value' => t('Add this site to your Warden Dashboard'),
'#submit' => array(
'warden_add_site',
),
);
return $form;
}