You are here

function ccl_delete_confirm_submit in Custom Contextual Links 7

Same name and namespace in other branches
  1. 8 ccl.admin.inc \ccl_delete_confirm_submit()

Submit handler for link deletion page.

File

./ccl.admin.inc, line 364
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');
  }
}