summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'] : '';