You are here

function _popup_defaults in Popup 7

Same name and namespace in other branches
  1. 8 includes/popup.util.inc \_popup_defaults()
  2. 7.x includes/popup.util.inc \_popup_defaults()

Sets all default attributes

2 calls to _popup_defaults()
popup_popup_attributes_alter in ./popup.module
Implementation of hook_popup_attributes_alter to provide defaults
_popup_ui_form_formatters_form in modules/popup_ui/includes/popup_ui.admin.inc

File

includes/popup.util.inc, line 199

Code

function _popup_defaults() {
  return array(
    // Content
    'image' => FALSE,
    'path' => FALSE,
    'title' => FALSE,
    // Identifiers
    'body-class' => FALSE,
    'class' => FALSE,
    'classes' => FALSE,
    'element-class' => FALSE,
    'id' => FALSE,
    'style' => FALSE,
    'title-class' => FALSE,
    // Behavior
    'activate' => 'hover',
    'ajax' => FALSE,
    'close' => FALSE,
    'effect' => 'default',
    'empty-body' => 'title',
    // Display
    'display' => FALSE,
    'expand' => 'bottom-right',
    'submenu-expand' => 'bottom-right',
    'flat' => FALSE,
    'opacity' => FALSE,
    'origin' => 'bottom-left',
    'submenu-origin' => 'top-right',
    'mode' => 'full',
    'width' => variable_get('popup-width', 150),
    'teaser' => FALSE,
    'page' => FALSE,
    'links' => FALSE,
    'panel' => FALSE,
    'inline' => FALSE,
    'label' => FALSE,
  );
}