summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-22 03:11:54 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-22 03:11:54 +0000
commitb4c737a2a5ed9bf9905c91107f94e42df36f2c44 (patch)
tree8bed38a803bf4f1c8dc1e657f42abe9cc2fd952d /modules/node
parent7ac380aa059bd901e7965445080d2fddef84f9e9 (diff)
downloadbrdo-b4c737a2a5ed9bf9905c91107f94e42df36f2c44.tar.gz
brdo-b4c737a2a5ed9bf9905c91107f94e42df36f2c44.tar.bz2
#287178 by justinrandell: Break up various hook_form_alter()s to hook_form_FORM_ID_alters().
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 068813f22..25e10df99 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1989,11 +1989,10 @@ function _node_index_node($node) {
}
/**
- * Implementation of hook_form_alter().
+ * Implementation of hook_form_FORM_ID_alter().
*/
-function node_form_alter(&$form, $form_state, $form_id) {
- // Advanced node search form
- if ($form_id == 'search_form' && $form['module']['#value'] == 'node' && user_access('use advanced search')) {
+function node_form_search_form_alter(&$form, $form_state) {
+ if ($form['module']['#value'] == 'node' && user_access('use advanced search')) {
// Keyword boxes:
$form['advanced'] = array(
'#type' => 'fieldset',
@@ -2069,7 +2068,6 @@ function node_form_alter(&$form, $form_state, $form_id) {
);
}
-
$form['#validate'][] = 'node_search_validate';
}
}