function ccl_delete_confirm_submit in Custom Contextual Links 8
Same name and namespace in other branches
- 7 ccl.admin.inc \ccl_delete_confirm_submit()
Submit handler for link deletion page.
File
- ./
ccl.admin.inc, line 376 - Provides administrative functions for ccl.
Code
function ccl_delete_confirm_submit($form, &$form_state) {
if ($form_state['values']['confirm']) {
db_delete('ccl')
->condition('clid', $form_state['values']['clid'])
->execute();
drupal_set_message(t('Link removed.'));
_ccl_update_cache();
drupal_goto('admin/config/user-interface/ccl');
}
}