summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Ziegler2007-02-12 12:12:20 (GMT)
committer Wolfgang Ziegler2007-02-12 12:12:20 (GMT)
commit5bc5fa626770238d411ea8d78b82a2aa03f10093 (patch)
treec426dec3514a161c4e7fcee6bb01e3280d42b996
parentce881b343d01500d0ae3505a58f90d5ae4d31ab1 (diff)
renamed auto_nodetitle_validate() to auto_nodetitle_form_validate() to avoid confusion
-rw-r--r--auto_nodetitle.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_nodetitle.module b/auto_nodetitle.module
index 7cfa67b..96e6361 100644
--- a/auto_nodetitle.module
+++ b/auto_nodetitle.module
@@ -28,7 +28,7 @@ function auto_nodetitle_form_alter($form_id, &$form) {
$form['title']['#value'] = 'ant';
$form['title']['#type'] = 'value';
$form['title']['#required'] = FALSE;
- $form['#validate']['auto_nodetitle_validate'] = array();
+ $form['#validate']['auto_nodetitle_form_validate'] = array();
}
}
}
@@ -47,9 +47,9 @@ function auto_nodetitle_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
}
/*
- * Sets the node title during validation, so that the node preview can display it
+ * Sets the node title during node form validation, so that the node preview can display it
*/
-function auto_nodetitle_validate($form_id, $form_values, $form) {
+function auto_nodetitle_form_validate($form_id, $form_values, $form) {
$node = (object)$form_values;
auto_nodetitle_set_title($node);
form_set_value($form['title'], $node->title);