summaryrefslogtreecommitdiff
path: root/sites/all/modules/media/modules/media_wysiwyg/media_wysiwyg.variable.inc
blob: 206905a0896693f34acf5a7393ba70eb89dcf0c8 (plain)
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
<?php

/**
 * @file
 * Declare Media WYSIWYG variables.
 */

/**
 * Implements hook_variable_group_info().
 */
function media_wysiwyg_variable_group_info() {
  $groups['media_wysiwyg'] = array(
    'title' => t('Media WYSIWYG'),
    'description' => t('Settings for Media WYSIWYG integration.'),
    'access' => 'administer media browser',
    'path' => 'admin/config/media/browser',
  );

  return $groups;
}

/**
* Implements hook_variable_info().
*/
function media_wysiwyg_variable_info($options) {
  $variables['media_wysiwyg_wysiwyg_title'] = array(
    'type' => 'string',
    'title' => t('WYSIWYG Title', array(), $options),
    'default' => t('Media browser', array(), $options),
    'description' => t('The WYSIWYG media plugin title.', array(), $options),
    'group' => 'media_wysiwyg',
  );
  $variables['media_wysiwyg_wysiwyg_icon_title'] = array(
    'type' => 'string',
    'title' => t('WYSIWYG Icon Title', array(), $options),
    'default' => t('Add media', array(), $options),
    'description' => t('The WYSIWYG media button title to display on hover.', array(), $options),
    'group' => 'media_wysiwyg',
  );

  return $variables;
}