You are here

function uif_isset_or in User Import Framework 7

Check if a variable is set and return it if so, otherwise the alternative.

2 calls to uif_isset_or()
theme_uif_form_help in ./uif.admin.inc
Theme function for import form help.
uif_assign_presave_fields in ./uif.admin.inc
Prepare core and entity user fields for user_save().

File

./uif.admin.inc, line 1063
Simple, extensible user import from a CSV file.

Code

function uif_isset_or(&$val, $alternate = NULL) {
  return isset($val) ? $val : $alternate;
}