1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* Declare Media WYSIWYG variables.
|
6
|
*/
|
7
|
|
8
|
/**
|
9
|
* Implements hook_variable_group_info().
|
10
|
*/
|
11
|
function media_wysiwyg_variable_group_info() {
|
12
|
$groups['media_wysiwyg'] = array(
|
13
|
'title' => t('Media WYSIWYG'),
|
14
|
'description' => t('Settings for Media WYSIWYG integration.'),
|
15
|
'access' => 'administer media browser',
|
16
|
'path' => 'admin/config/media/browser',
|
17
|
);
|
18
|
|
19
|
return $groups;
|
20
|
}
|
21
|
|
22
|
/**
|
23
|
* Implements hook_variable_info().
|
24
|
*/
|
25
|
function media_wysiwyg_variable_info($options) {
|
26
|
$variables['media_wysiwyg_wysiwyg_title'] = array(
|
27
|
'type' => 'string',
|
28
|
'title' => t('WYSIWYG Title', array(), $options),
|
29
|
'default' => t('Media browser', array(), $options),
|
30
|
'description' => t('The WYSIWYG media plugin title.', array(), $options),
|
31
|
'group' => 'media_wysiwyg',
|
32
|
);
|
33
|
$variables['media_wysiwyg_wysiwyg_icon_title'] = array(
|
34
|
'type' => 'string',
|
35
|
'title' => t('WYSIWYG Icon Title', array(), $options),
|
36
|
'default' => t('Add media', array(), $options),
|
37
|
'description' => t('The WYSIWYG media button title to display on hover.', array(), $options),
|
38
|
'group' => 'media_wysiwyg',
|
39
|
);
|
40
|
|
41
|
return $variables;
|
42
|
}
|