You are here

function pet_isset_or in Previewable email templates 6

Same name and namespace in other branches
  1. 8.4 pet.module \pet_isset_or()
  2. 8 pet.module \pet_isset_or()
  3. 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;
}