function _location_taxonomize_get_fields in Location Taxonomize 7.2
Returns the possible fields for the hierarchy if $assoc, return value is in form key => key if $labels, return value is in form key => value with field labels as values if $source is set, gets the fields for that source (defaults to current source)
2 calls to _location_taxonomize_get_fields()
- location_taxonomize_form in ./
location_taxonomize.admin.inc - Location Taxonomize administration form
- _location_taxonomize_get_hierarchy in ./
location_taxonomize.inc - Returns the hierarchy configured for the current Location Vocabulary
File
- ./
location_taxonomize.inc, line 173 - Some useful functions for Location taxonomize
Code
function _location_taxonomize_get_fields($assoc = TRUE, $labels = FALSE, $source = NULL) {
if ($source == NULL) {
$source = _location_taxonomize_get_source();
}
$suffix = '_get_fields';
$function = $source . $suffix;
return $function($assoc, $labels);
}