function _popup_default in Popup 7
Same name and namespace in other branches
- 8 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;
}
}