#100636 by kkaefer, webchick and Arancaytar: more specific page titles for node creation and editing
parent
e47a8a1e04
commit
4a65afa132
|
@ -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) {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue