function _location_taxonomy_add_longname in Location Taxonomize 7.2
Same name and namespace in other branches
- 7 location_taxonomize.module \_location_taxonomy_add_longname()
Adds a longname field to a term
1 call to _location_taxonomy_add_longname()
- location_taxonomize_process_item in ./
location_taxonomize.module - Determines if a location needs to be taxonomized. If so, it saves the appropriate terms Returns an array containing two items: the first is the number of new terms saved, and the second is an array of all the terms that correspond to this object,…
File
- ./
location_taxonomize.module, line 272
Code
function _location_taxonomy_add_longname(&$term, $hlevel, $location, $longname = NULL) {
if ($longname == NULL) {
$longname = location_taxonomize_make_longname($hlevel, $location);
}
// add the longname to the term
$term->location_taxonomize_longname['und'][0]['value'] = $longname;
}