function popup_popup_styles in Popup 7
Same name and namespace in other branches
- 7.x popup.module \popup_popup_styles()
- 6.x popup.module \popup_popup_styles()
Implementation of hook_popup_styles
This hook allows modules to provide popup display styles. Note that the templates of these styles cannot be overridden by the theme.
Return value
a keyed array
in the form:
array( 'Style name 1' => 'path/to/style-1', 'Style label 2' => 'path/to/style-2', ... )
For style-1 the following files must exist in the path/to/style-1 directory:
popup-element-body.tpl.php popup-element-title.tpl.php popup-element.tpl.php
For style-1 the following files may exist in the path/to/style-1 directory, and will be included if present:
popup-element.css popup-element.js
File
- ./
popup.module, line 230
Code
function popup_popup_styles() {
$path = drupal_get_path('module', 'popup') . '/styles';
return array(
'McPopup' => $path . '/McPopup',
'Bent white' => $path . '/bent_white',
'Black' => $path . '/black',
'Obsidian' => $path . '/obsidian',
'White' => $path . '/white',
);
}