function location_elements in Location 6.3
Same name and namespace in other branches
- 5.3 location.module \location_elements()
Implementation of hook_elements().
File
- ./
location.module, line 133 - Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…
Code
function location_elements() {
return array(
'location_element' => array(
'#input' => TRUE,
'#process' => array(
'_location_expand_location',
),
'#tree' => TRUE,
'#location_settings' => array(),
'#required' => FALSE,
'#attributes' => array(
'class' => 'location',
),
// Element level validation.
'#element_validate' => array(
'location_element_validate',
),
),
'location_settings' => array(
'#input' => TRUE,
'#process' => array(
'_location_expand_location_settings',
),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#tree' => TRUE,
),
);
}