You are here

function autoassignrole_page_delete_confirm_submit in Auto Assign Role 7

Same name and namespace in other branches
  1. 7.2 autoassignrole.admin.inc \autoassignrole_page_delete_confirm_submit()

Form submit handler for autoassignrole_page_delete_confirm().

File

./autoassignrole.admin.inc, line 469
Administrative functionality for auto assign role.

Code

function autoassignrole_page_delete_confirm_submit($form, &$form_state) {
  db_delete('autoassignrole_page')
    ->condition('rid_page_id', (int) $form_state['values']['page_id'])
    ->execute();
  menu_rebuild();
  drupal_set_message(t('Successfully deleted page'));
  $form_state['redirect'] = 'admin/config/people/autoassignrole/pages';
}