Issue #1144848 by mr.baileys: Fixed node_type_form_submit() should not say it is implementation of hook_form_submit().
parent
97450de684
commit
7c46b70e49
|
@ -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) {
|
function node_type_form($form, &$form_state, $type = NULL) {
|
||||||
if (!isset($type->type)) {
|
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) {
|
function node_type_form_validate($form, &$form_state) {
|
||||||
$type = new stdClass();
|
$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) {
|
function node_type_form_submit($form, &$form_state) {
|
||||||
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
|
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
|
||||||
|
|
Loading…
Reference in New Issue