Skip to content
Snippets Groups Projects
Commit af7b4418 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1144848 by mr.baileys: Fixed node_type_form_submit() should not say it...

Issue #1144848 by mr.baileys: Fixed node_type_form_submit() should not say it is implementation of hook_form_submit().
parent a7309fae
No related branches found
No related tags found
No related merge requests found
......@@ -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'] : '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment