1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
*
|
5
|
* Variable information for Recovery Password.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Implements hook_variable_info().
|
10
|
*/
|
11
|
function recovery_pass_variable_info($options) {
|
12
|
$variables['recovery_pass_email_subject'] = array(
|
13
|
'type' => 'string',
|
14
|
'title' => t('Email Subject', array(), $options),
|
15
|
'default' => _recovery_pass_mail_text('email_subject'),
|
16
|
'description' => t('Recovery Password Email subject', array(), $options),
|
17
|
'required' => TRUE,
|
18
|
'localize' => TRUE,
|
19
|
'group' => 'recovery_pass',
|
20
|
);
|
21
|
$variables['recovery_pass_email_text'] = array(
|
22
|
'type' => 'text',
|
23
|
'title' => t('Email Body', array(), $options),
|
24
|
'default' => _recovery_pass_mail_text('email_text'),
|
25
|
'description' => t('Recovery Password Email Body', array(), $options),
|
26
|
'required' => TRUE,
|
27
|
'localize' => TRUE,
|
28
|
'group' => 'recovery_pass',
|
29
|
);
|
30
|
$variables['recovery_pass_old_pass_warning'] = array(
|
31
|
'type' => 'text',
|
32
|
'title' => t('Old Password Warning', array(), $options),
|
33
|
'default' => _recovery_pass_mail_text('old_pass_warning'),
|
34
|
'description' => t('Old Password Warning Message', array(), $options),
|
35
|
'required' => TRUE,
|
36
|
'localize' => TRUE,
|
37
|
'group' => 'recovery_pass',
|
38
|
);
|
39
|
return $variables;
|
40
|
}
|
41
|
|
42
|
/**
|
43
|
* Implements hook_variable_group_info().
|
44
|
*/
|
45
|
function recovery_pass_variable_group_info() {
|
46
|
$groups['recovery_pass'] = array(
|
47
|
'title' => t('Recovery Password'),
|
48
|
'access' => 'administer users',
|
49
|
'path' => 'admin/config/people/recovery-pass',
|
50
|
);
|
51
|
return $groups;
|
52
|
}
|