diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-03-26 00:35:59 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-03-26 00:35:59 +0000 |
commit | eb6b848de609469d313a1d48b6b7f8a559c9e289 (patch) | |
tree | 034aa0a102aeb6f4c4f4eaf78d5c2062257350cb /modules/forum/forum.module | |
parent | 2e0bb6e939e54c5cc8fe03e583d07b358cffb0c4 (diff) | |
download | brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.gz brdo-eb6b848de609469d313a1d48b6b7f8a559c9e289.tar.bz2 |
- Patch #110888 by Eaton: unify hook _alter()
Diffstat (limited to 'modules/forum/forum.module')
-rw-r--r-- | modules/forum/forum.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 4ff56a177..a7dd2b79b 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -207,7 +207,7 @@ function forum_admin_settings() { /** * Implementation of hook_form_alter(). */ -function forum_form_alter($form_id, &$form) { +function forum_form_alter(&$form, $form_id) { // hide critical options from forum vocabulary if ($form_id == 'taxonomy_form_vocabulary') { if ($form['vid']['#value'] == _forum_get_vid()) { @@ -657,7 +657,7 @@ function _forum_parent_select($tid, $title, $child_type) { return array('#type' => 'select', '#title' => $title, '#default_value' => $parent, '#options' => $options, '#description' => $description, '#required' => TRUE); } -function forum_link_alter(&$node, &$links) { +function forum_link_alter(&$links, $node) { foreach ($links as $module => $link) { if (strstr($module, 'taxonomy_term')) { // Link back to the forum and not the taxonomy term page. We'll only |