You are here

function path_breadcrumbs_delete_form_submit in Path Breadcrumbs 7

Submit callback for path_breadcrumbs_delete_form. Removes path breadcrumbs from database.

File

./path_breadcrumbs.module, line 248

Code

function path_breadcrumbs_delete_form_submit($form, &$form_state) {
  $values = $form_state['values'];
  if ($values['op'] == $values['submit']) {
    path_breadcrumbs_delete($values['path_id']);
    drupal_set_message(t('Path breadcrumb was successfully deleted.'));
  }

  // Redirect to the settings page.
  $form_state['redirect'] = 'admin/structure/path-breadcrumbs';
}