public function GatherContentFunctions::val in GatherContent 7.2
Check to see if key exists in array otherwise returns default param.
2 calls to GatherContentFunctions::val()
- GatherContentCurl::generateFormSettings in includes/
curl.inc - Generate page settings for pages_import page.
- GatherContentCurl::getFieldConfig in includes/
curl.inc - Process config field to return field array.
File
- includes/
functions.inc, line 49 - Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Class
- GatherContentFunctions
- @file Class containing general functions used throughout the importing. Extended by GatherContentCurl.
Code
public function val($array, $field, $default = '') {
if (is_array($array) && isset($array[$field])) {
return $array[$field];
}
return $default;
}