function getlocations_fields_element_postal_code in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/getlocations_fields.functions.inc \getlocations_fields_element_postal_code()
Parameters
string $default:
bool $ctools:
Return value
Returns form element
File
- modules/
getlocations_fields/ getlocations_fields.functions.inc, line 113 - getlocations_fields.functions.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_fields_element_postal_code($default, $ctools = TRUE) {
$element = array(
'#type' => 'textfield',
'#title' => t('Postal code'),
'#default_value' => $default,
);
if ($ctools) {
$element['#dependency'] = array(
'edit-options-origin' => array(
'postal',
'postal_default',
),
);
}
return $element;
}