function path_breadcrumbs_edit_form_submit in Path Breadcrumbs 7
Submit callback for path_breadcrumbs_form.
File
- ./
path_breadcrumbs.module, line 204
Code
function path_breadcrumbs_edit_form_submit($form, &$form_state) {
// Save or update path breadcrumbs.
$values = $form_state['values'];
$data = (object) $values;
$path_breadcrumbs = isset($values['path_breadcrumbs']) ? $values['path_breadcrumbs'] : NULL;
path_breadcrumbs_save($data, $path_breadcrumbs);
drupal_set_message(t('Path breadcrumbs was successfully updated.'));
// Redirect to the settings page.
$form_state['redirect'] = 'admin/structure/path-breadcrumbs';
}