Commit 20d3be4c authored by drumm's avatar drumm

#68999 by adixon. Give the theme a chance to change the node/add/... title.

parent 4fb76f68
......@@ -2012,8 +2012,8 @@ function node_add($type = NULL) {
// Initialize settings:
$node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type);
$output = drupal_get_form($type .'_node_form', $node);
drupal_set_title(t('Submit @name', array('@name' => $types[$type]->name)));
$output = drupal_get_form($type .'_node_form', $node);
else {
// If no (valid) node type has been provided, display a node type overview.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment