function location_taxonomize_convert_field_name in Location Taxonomize 7.2
Converts a field name from the current source to an internal primary field name if necessary. Otherwise returns the given name.
3 calls to location_taxonomize_convert_field_name()
- location_taxonomize_make_longname in ./
location_taxonomize.module - _location_taxonomize_create_term_name in ./
location_taxonomize.module - Helper function to create the name for a term to be saved, considering all the config options
- _location_taxonomize_init_var_longname in ./
location_taxonomize.inc - Initializes the Long Name fields variable (called during initialization)
File
- ./
location_taxonomize.inc, line 261 - Some useful functions for Location taxonomize
Code
function location_taxonomize_convert_field_name($name) {
$primary_fields = location_taxonomize_get_primary_fields();
foreach ($primary_fields as $key => $value) {
if ($value == $name) {
$name = $key;
break;
}
}
return $name;
}