Skip to content
Snippets Groups Projects
Commit 4a65afa1 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#100636 by kkaefer, webchick and Arancaytar: more specific page titles for...

#100636 by kkaefer, webchick and Arancaytar: more specific page titles for node creation and editing
parent e47a8a1e
No related branches found
No related tags found
No related merge requests found
...@@ -2292,7 +2292,7 @@ function node_add($type) { ...@@ -2292,7 +2292,7 @@ function node_add($type) {
// Initialize settings: // Initialize settings:
$node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type, 'language' => ''); $node = array('uid' => $user->uid, 'name' => $user->name, 'type' => $type, 'language' => '');
drupal_set_title(t('Submit @name', array('@name' => $types[$type]->name))); drupal_set_title(t('Create @name', array('@name' => $types[$type]->name)));
$output = drupal_get_form($type .'_node_form', $node); $output = drupal_get_form($type .'_node_form', $node);
} }
...@@ -2565,7 +2565,7 @@ function node_page_edit($node) { ...@@ -2565,7 +2565,7 @@ function node_page_edit($node) {
drupal_goto('node/'. $node->nid .'/delete', $destination); drupal_goto('node/'. $node->nid .'/delete', $destination);
} }
drupal_set_title(check_plain($node->title)); drupal_set_title(t('Edit %title', array('%title' => $node->title)));
return drupal_get_form($node->type .'_node_form', $node); return drupal_get_form($node->type .'_node_form', $node);
} }
......
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