function protected_pages_delete_confirm_submit in Protected Pages 7.2
Same name and namespace in other branches
- 7 protected_pages.admin.inc \protected_pages_delete_confirm_submit()
Implements hook_submit().
File
- ./
protected_pages.admin.inc, line 263 - Provides page callbacks for configuration page.
Code
function protected_pages_delete_confirm_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
$pid = $form_state['values']['pid'];
db_delete('protected_pages')
->condition('pid', $pid)
->execute();
drupal_set_message(t('The path has been successfully deleted from protected pages.'));
$form_state['redirect'] = 'admin/config/system/protected_pages';
}
}