function panopoly_magic_init in Panopoly 7
Implements hook_init()
File
- modules/
panopoly/ panopoly_magic/ panopoly_magic.module, line 19
Code
function panopoly_magic_init() {
// Override the Chaos Tools Modal Default Settings
$default_style = array(
'CToolsModal' => array(
'modalSize' => array(
'type' => 'scale',
'width' => '.9',
'height' => '.9',
'addWidth' => 0,
'addHeight' => 0,
'contentRight' => 25,
'contentBottom' => 75,
),
'modalOptions' => array(
'opacity' => '.55',
'background-color' => '#FFF',
),
'animationSpeed' => 'fast',
'modalTheme' => 'CToolsModalDialog',
'throbberTheme' => 'CToolsModalThrobber',
),
);
$modal_style = variable_get('panopoly_magic_modal_style', $default_style);
drupal_add_js($modal_style, 'setting');
// Tell Javascript which 'Add content' preview mode we're using.
drupal_add_js(array(
'panopoly_magic' => array(
'pane_add_preview_mode' => _panopoly_magic_add_content_preview_mode_name(),
),
), 'setting');
}