forked from Roomify/rooms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rooms.variable.inc
45 lines (39 loc) · 1012 Bytes
/
rooms.variable.inc
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
41
42
43
44
<?php
/**
* @file
* Variable API module. Definition for some xample variables
*/
/**
* Implements hook_variable_info().
*/
function rooms_variable_info($options) {
$variables['rooms_arrival_date'] = array(
'type' => 'string',
'title' => t('Arrival Date'),
'default' => 'Arrival Date',
'description' => t('Change text : Arrival Date'),
'localize' => TRUE,
'group' => 'rooms',
);
$variables['rooms_departure_date'] = array(
'type' => 'string',
'title' => t('Departure Date'),
'default' => 'Departure Date',
'description' => t('Change text : Departure Date'),
'localize' => TRUE,
'group' => 'rooms',
);
return $variables;
}
/**
* Implements hook_variable_group_info().
*/
function rooms_variable_group_info() {
$groups['rooms'] = array(
'title' => t('Rooms'),
'description' => t('Variable examples of different types.'),
'access' => 'administer site configuration',
'path' => array('admin/rooms/'),
);
return $groups;
}