function location_taxonomize_taxonomize_bulk in Location Taxonomize 7.2
2 calls to location_taxonomize_taxonomize_bulk()
- location_taxonomize_af_bulk_taxonomize_op in location_taxonomize_af/
location_taxonomize_af.module - Runs the bulk taxonomize operation
- location_taxonomize_location_bulk_taxonomize_op in location_taxonomize_location/
location_taxonomize_location.module - Runs the bulk taxonomize operation
File
- ./
location_taxonomize.module, line 154
Code
function location_taxonomize_taxonomize_bulk($items) {
$saved = 0;
foreach ($items as $nid => $items) {
$tids = array();
foreach ($items as $item) {
$results = location_taxonomize_process_item($item);
$saved += $results['saved'];
$tids = array_merge($tids, $results['tids']);
}
if (!empty($tids)) {
if (location_taxonomize_term_attach_enabled()) {
location_taxonomize_term_attach_bulk($tids, $nid);
}
}
}
return array(
"saved" => $saved,
);
}