summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-01 01:24:57 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-01 01:24:57 -0700
commit7c46b70e49b49b2423a82ad65237bdd230bc5ca0 (patch)
tree83691b2d3b53d14ad935e982ecef5ba3bc88f593 /modules/node
parent97450de6846910f41476522cb0fdc22dad65fe4f (diff)
downloadbrdo-7c46b70e49b49b2423a82ad65237bdd230bc5ca0.tar.gz
brdo-7c46b70e49b49b2423a82ad65237bdd230bc5ca0.tar.bz2
Issue #1144848 by mr.baileys: Fixed node_type_form_submit() should not say it is implementation of hook_form_submit().
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc18
1 files changed, 15 insertions, 3 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index 11ecc2c38..d58bc318f 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -75,7 +75,15 @@ function theme_node_admin_overview($variables) {
}
/**
- * Generates the node type editing form.
+ * Form constructor for the node type editing form.
+ *
+ * @param $type
+ * (optional) The machine name of the node type when editing an existing node
+ * type.
+ *
+ * @see node_type_form_validate()
+ * @see node_type_form_submit()
+ * @ingroup forms
*/
function node_type_form($form, &$form_state, $type = NULL) {
if (!isset($type->type)) {
@@ -241,7 +249,9 @@ function _node_characters($length) {
}
/**
- * Validates the content type submission form generated by node_type_form().
+ * Form validation handler for node_type_form().
+ *
+ * @see node_type_form_submit()
*/
function node_type_form_validate($form, &$form_state) {
$type = new stdClass();
@@ -269,7 +279,9 @@ function node_type_form_validate($form, &$form_state) {
}
/**
- * Implements hook_form_submit().
+ * Form submission handler for node_type_form().
+ *
+ * @see node_type_form_validate()
*/
function node_type_form_submit($form, &$form_state) {
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';