function pet_isset_or in Previewable email templates 6
Same name and namespace in other branches
- 8.4 pet.module \pet_isset_or()
- 8 pet.module \pet_isset_or()
- 7 pet.module \pet_isset_or()
Check if a variable is set and return it if so, otherwise the alternative.
1 call to pet_isset_or()
- pet_user_form in ./
pet.admin.inc - Multi-step PET form.
File
- ./
pet.admin.inc, line 610 - Contains administrative pages for creating, editing, and deleting previewable email templates (PETs).
Code
function pet_isset_or(&$val, $alternate = NULL) {
return isset($val) ? $val : $alternate;
}