function _popup_default in Popup 6.x
Same name and namespace in other branches
- 8 includes/popup.util.inc \_popup_default()
- 7 includes/popup.util.inc \_popup_default()
- 7.x includes/popup.util.inc \_popup_default()
Sets a default value on a variable if it is not set
2 calls to _popup_default()
- popup in includes/
popup.api.inc - Renders a popup element using specified attributes. This method should be used to create popups programmatically.
- _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 185
Code
function _popup_default(&$attribute, $default) {
if (!$attribute) {
$attribute = $default;
}
}