function _popup_default in Popup 8
Same name and namespace in other branches
- 7 includes/popup.util.inc \_popup_default()
- 7.x includes/popup.util.inc \_popup_default()
- 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;
}
}