Issue #813146 by bleen18: remove variable cruft in node_submit function
parent
59ce4ef9c8
commit
4b39ca547d
|
@ -1002,8 +1002,6 @@ function node_validate($node, $form, &$form_state) {
|
||||||
* Prepare node for saving by populating author and creation date.
|
* Prepare node for saving by populating author and creation date.
|
||||||
*/
|
*/
|
||||||
function node_submit($node) {
|
function node_submit($node) {
|
||||||
global $user;
|
|
||||||
|
|
||||||
// A user might assign the node author by entering a user name in the node
|
// A user might assign the node author by entering a user name in the node
|
||||||
// form, which we then need to translate to a user ID.
|
// form, which we then need to translate to a user ID.
|
||||||
if (isset($node->name)) {
|
if (isset($node->name)) {
|
||||||
|
|
Loading…
Reference in New Issue