summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-28 06:08:47 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-28 06:08:47 +0000
commit96926ca04707d6eda0e96b2ae7eb01efb708c3ec (patch)
tree1f94ea0b97c411ba1aa1084f040c98c2a7416542 /modules/taxonomy/taxonomy.module
parenta8ceb7613b808c1b6643e910f96dc7319012bf67 (diff)
downloadbrdo-96926ca04707d6eda0e96b2ae7eb01efb708c3ec.tar.gz
brdo-96926ca04707d6eda0e96b2ae7eb01efb708c3ec.tar.bz2
- Patch #146470 by Eaton et al: standardize form API3 hook parameter order.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index c008e301e..d86502782 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -304,7 +304,7 @@ function taxonomy_form_vocabulary($edit = array()) {
/**
* Accept the form submission for a vocabulary and save the results.
*/
-function taxonomy_form_vocabulary_submit($form_values, $form, &$form_state) {
+function taxonomy_form_vocabulary_submit($form, &$form_state, $form_values) {
// Fix up the nodes array to remove unchecked nodes.
$form_values['nodes'] = array_filter($form_values['nodes']);
switch (taxonomy_save_vocabulary($form_values)) {
@@ -393,7 +393,7 @@ function taxonomy_vocabulary_confirm_delete($vid) {
t('Cancel'));
}
-function taxonomy_vocabulary_confirm_delete_submit($form_values, $form, &$form_state) {
+function taxonomy_vocabulary_confirm_delete_submit($form, &$form_state, $form_values) {
$status = taxonomy_del_vocabulary($form_values['vid']);
drupal_set_message(t('Deleted vocabulary %name.', array('%name' => $form_values['name'])));
watchdog('taxonomy', 'Deleted vocabulary %name.', array('%name' => $form_values['name']), WATCHDOG_NOTICE);
@@ -479,7 +479,7 @@ function taxonomy_form_term($vocabulary, $edit = array()) {
/**
* Accept the form submission for a taxonomy term and save the result.
*/
-function taxonomy_form_term_submit($form_values, $form, &$form_state) {
+function taxonomy_form_term_submit($form, &$form_state, $form_values) {
switch (taxonomy_save_term($form_values)) {
case SAVED_NEW:
drupal_set_message(t('Created new term %term.', array('%term' => $form_values['name'])));
@@ -629,7 +629,7 @@ function taxonomy_term_confirm_delete($tid) {
t('Cancel'));
}
-function taxonomy_term_confirm_delete_submit($form_values, $form, &$form_state) {
+function taxonomy_term_confirm_delete_submit($form, &$form_state, $form_values) {
taxonomy_del_term($form_values['tid']);
drupal_set_message(t('Deleted term %name.', array('%name' => $form_values['name'])));
watchdog('taxonomy', 'Deleted term %name.', array('%name' => $form_values['name']), WATCHDOG_NOTICE);
@@ -702,7 +702,7 @@ function taxonomy_get_vocabularies($type = NULL) {
* Implementation of hook_form_alter().
* Generate a form for selecting terms to associate with a node.
*/
-function taxonomy_form_alter(&$form, $form_id) {
+function taxonomy_form_alter(&$form, $form_state, $form_id) {
if (isset($form['type']) && isset($form['#node']) && $form['type']['#value'] .'_node_form' == $form_id) {
$node = $form['#node'];