function form_type_country_value in Countries 7
Same name and namespace in other branches
- 8 countries.module \form_type_country_value()
- 7.2 countries.module \form_type_country_value()
File
- ./
countries.module, line 150
Code
function form_type_country_value($element, $input = FALSE) {
if ($input !== FALSE) {
if (isset($element['#multiple']) && $element['#multiple']) {
return is_array($input) ? array_values($input) : array();
}
else {
return $input;
}
}
}