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

merge-requests/26/head
webchick 2011-06-01 01:24:57 -07:00
parent 97450de684
commit 7c46b70e49
1 changed files with 15 additions and 3 deletions

View File

@ -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'] : '';