--- /Users/nicholaswhite/Desktop/vocabperms original/vocabperms.module +++ vocabperms.module @@ -65,9 +65,6 @@ // add the options to the beginning of the form after the description $form = array_merge(array_slice($form, 0, 2), $newform, array_slice($form, 2)); - - // add our submit handler after all other handlers - $form['#submit']['vocabperms_taxonomy_form_vocabulary_submit'] = array(); } } elseif (substr($form_id, -10) == '_node_form' && $form['#base'] != 'confirm_form') { @@ -91,9 +88,11 @@ if ($type == 'vocabulary') { switch ($op) { case 'insert': + case 'update': // save the new vocabulary id for use in the hook_submit handler below global $_vocabperms_vid; $_vocabperms_vid = $edit['vid']; + vocabperms_taxonomy_form_vocabulary_submit('taxonomy_form_vocabulary', $edit); break; case 'delete': // good housekeeping - remove permissions when vocabularies are deleted