function _taxonomy_menu_insert_link_items_process in Taxonomy menu 6.2
Same name and namespace in other branches
- 7 taxonomy_menu.batch.inc \_taxonomy_menu_insert_link_items_process()
1 string reference to '_taxonomy_menu_insert_link_items_process'
- _taxonomy_menu_insert_link_items_batch in ./
taxonomy_menu.batch.inc - @file The $batch can include the following values. Only 'operations' and 'finished' are required, all others will be set to default values.
File
- ./
taxonomy_menu.batch.inc, line 64 - The $batch can include the following values. Only 'operations' and 'finished' are required, all others will be set to default values.
Code
function _taxonomy_menu_insert_link_items_process($terms, $menu_name, &$context) {
_taxonomy_menu_batch_init_context($context, $start, $end, 10);
// Loop through $terms to process each term
for ($i = $start; $i < count($terms) && $i < $end; $i++) {
$args = array(
'term' => $terms[$i],
'menu_name' => $menu_name,
);
$mlid = taxonomy_menu_handler('insert', $args);
}
_taxonomy_menu_batch_update_context($context, $end, count($terms), 'Creating menu items');
}