You are here

function resource_conflict_form_submit in Resource Conflict 7.3

Same name and namespace in other branches
  1. 5.2 resource_conflict.module \resource_conflict_form_submit()
  2. 6.2 resource_conflict.module \resource_conflict_form_submit()
  3. 7.2 resource_conflict.module \resource_conflict_form_submit()

Our custom submit handler for when a content type is saved.

1 string reference to 'resource_conflict_form_submit'
resource_conflict_form_alter in ./resource_conflict.module
Implements hook_form_alter().

File

./resource_conflict.module, line 324
Provides general functionality for the resource conflict module.

Code

function resource_conflict_form_submit($form, &$form_state) {
  $type = $form_state['values']['type'];
  if (isset($form_state['values']['rc_type']) && $form_state['values']['rc_type'] == 1) {
    _resource_conflict_add_type($type);
  }
  else {
    _resource_conflict_remove_type($type);
  }
}