You are here

function _popup_default in Popup 8

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

Sets a default value on a variable if it is not set

1 call to _popup_default()
_popup_classes in includes/popup.util.inc
Generates the correct classes for each of the popup element, title and body.

File

includes/popup.util.inc, line 249

Code

function _popup_default(&$attribute, $default) {
  if (!$attribute) {
    $attribute = $default;
  }
}