-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwot.admin.inc
More file actions
41 lines (33 loc) · 868 Bytes
/
wot.admin.inc
File metadata and controls
41 lines (33 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// $Id$
/**
* @file
* Administrative page callbacks for the wot module.
*/
/**
* Administration settings form.
*
* @see system_settings_form()
*/
function wot_admin_settings() {
$form = array();
$form['wot'] = array(
'#type' => 'textfield',
'#size' => 30,
'#maxlength' => 30,
'#title' => t('WOT verification code'),
'#description' => t('This code shall only include digits (0 to 9) and hexadecimal characters (a to f).'),
'#default_value' => variable_get('wot', NULL),
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
$form['actions']['reset'] = array(
'#type' => 'submit',
'#value' => t('Reset to defaults'),
'#submit' => array('wot_admin_settings_reset_submit'),
);
$form['#submit'][] = 'wot_admin_settings_submit';
return $form;
}