function path_breadcrumbs_ui_delete_form_submit in Path Breadcrumbs 7.2
Same name and namespace in other branches
- 7.3 path_breadcrumbs_ui/path_breadcrumbs_ui.module \path_breadcrumbs_ui_delete_form_submit()
Submit callback for deletion form. Removes path breadcrumbs from database.
_state
Parameters
$form:
File
- path_breadcrumbs_ui/
path_breadcrumbs_ui.module, line 1270 - Provide user interface for CRUD operations with path breadcrumbs.
Code
function path_breadcrumbs_ui_delete_form_submit($form, &$form_state) {
$values = $form_state['values'];
// Delete breadcrumb.
if ($values['op'] == $values['submit']) {
path_breadcrumbs_delete($values['machine_name']);
drupal_set_message(t('Path breadcrumb was successfully deleted.'));
}
// Redirect to the settings page.
$form_state['redirect'] = 'admin/structure/path-breadcrumbs';
}