You are here

function taxonomy_edge_rebuild_page_confirm_submit in Taxonomy Edge 7.2

Same name and namespace in other branches
  1. 8 taxonomy_edge.admin.inc \taxonomy_edge_rebuild_page_confirm_submit()
  2. 6 taxonomy_edge.admin.inc \taxonomy_edge_rebuild_page_confirm_submit()
  3. 7 taxonomy_edge.admin.inc \taxonomy_edge_rebuild_page_confirm_submit()

Submit callback; rebuild trees.

File

./taxonomy_edge.admin.inc, line 75
Pages for taxonomy edge settings and more.

Code

function taxonomy_edge_rebuild_page_confirm_submit($form, &$form_state) {
  $form_state['redirect'] = 'admin/structure/taxonomy';
  module_load_include('rebuild.inc', 'taxonomy_edge');
  switch ($form_state['values']['type']) {
    case 'edges':
      return taxonomy_edge_rebuild_edges_batch($form_state['values']['vocabulary']->vid);
    case 'order':
      return taxonomy_edge_rebuild_order_batch($form_state['values']['vocabulary']->vid);
  }
}