forked from josereyero/telegram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telegram.variable.inc
50 lines (49 loc) · 1.42 KB
/
telegram.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
45
46
47
48
49
50
<?php
/**
* @file
* Telegram variables.
*/
/**
* Implements hook_variable_info().
*/
function telegram_variable_info($options) {
$variables['telegram_site_number'] = array(
'type' => 'string',
'title' => t('Site phone number', array(), $options),
);
$variables['telegram_site_contact'] = array(
'type' => 'string',
'title' => t('Site contact name', array(), $options),
);
$variables['telegram_command_exec'] = array(
'type' => 'string',
'title' => t('Executable command', array(), $options),
'default' => '/usr/local/bin/telegram',
);
$variables['telegram_command_key'] = array(
'type' => 'string',
'title' => t('Key file path', array(), $options),
'default' => '/etc/telegram/server.pub',
);
$variables['telegram_config_path'] = array(
'type' => 'string',
'title' => t('Configuration file path', array(), $options),
'default' => '/etc/telegram/telegram.conf',
);
$variables['telegram_command_cwd'] = array(
'type' => 'string',
'title' => t('Command cwd path', array(), $options),
'default' => '/home/telegram',
);
$variables['telegram_log_file'] = array(
'type' => 'string',
'title' => t('Optional log file', array(), $options),
'default' => '/tmp/drupal-telegram.log',
);
$variables['telegram_command_debug'] = array(
'type' => 'enable',
'title' => t('Debug mode', array(), $options),
'default' => 0,
);
return $variables;
}