You are here

function mb_comment_delete_confirm_submit in More Buttons 7

Submit callback to delete MB Comment content type system variables if content types will be deleted.

1 string reference to 'mb_comment_delete_confirm_submit'
mb_comment_form_alter in mb_comment/mb_comment.module
Implements hook_form_alter().

File

mb_comment/mb_comment.module, line 194
Provides a Cancel button for comments.

Code

function mb_comment_delete_confirm_submit($form, &$form_state) {
  $module = 'mb_comment';
  foreach ($form_state['build_info']['args'] as $type) {
    variable_del($module . '_cancel_' . $type->type);
  }
}