You are here

function node_authlink_form_node_type_form_alter_submit in Node authorize link 7

Same name and namespace in other branches
  1. 8 node_authlink.module \node_authlink_form_node_type_form_alter_submit()

Callback: Submit for node_type_form.

1 string reference to 'node_authlink_form_node_type_form_alter_submit'
node_authlink_form_node_type_form_alter in ./node_authlink.module
Implements hook_form_node_type_form_alter().

File

./node_authlink.module, line 82
Provides functionality for the node_authlink module.

Code

function node_authlink_form_node_type_form_alter_submit(&$form, &$form_state) {

  // Disabled.
  if (!$form_state['values']['node_authlink_enable']) {
    variable_del('node_authlink_enable_' . $form_state['values']['type']);
    variable_del('node_authlink_grants_' . $form_state['values']['type']);
  }
}