Skip to content
Snippets Groups Projects
Commit 18a0478e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #84146 by profix, webernet, et al: capitalization fixes.

parent 45d989a7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1124,28 +1124,28 @@ function node_menu($may_cache) { ...@@ -1124,28 +1124,28 @@ function node_menu($may_cache) {
if (arg(0) == 'node' && is_numeric(arg(1))) { if (arg(0) == 'node' && is_numeric(arg(1))) {
$node = node_load(arg(1)); $node = node_load(arg(1));
if ($node->nid) { if ($node->nid) {
$items[] = array('path' => 'node/'. arg(1), 'title' => t('view'), $items[] = array('path' => 'node/'. arg(1), 'title' => t('View'),
'callback' => 'node_page_view', 'callback' => 'node_page_view',
'callback arguments' => array($node), 'callback arguments' => array($node),
'access' => node_access('view', $node), 'access' => node_access('view', $node),
'type' => MENU_CALLBACK); 'type' => MENU_CALLBACK);
$items[] = array('path' => 'node/'. arg(1) .'/view', 'title' => t('view'), $items[] = array('path' => 'node/'. arg(1) .'/view', 'title' => t('View'),
'type' => MENU_DEFAULT_LOCAL_TASK, 'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10); 'weight' => -10);
$items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('edit'), $items[] = array('path' => 'node/'. arg(1) .'/edit', 'title' => t('Edit'),
'callback' => 'node_page_edit', 'callback' => 'node_page_edit',
'callback arguments' => array($node), 'callback arguments' => array($node),
'access' => node_access('update', $node), 'access' => node_access('update', $node),
'weight' => 1, 'weight' => 1,
'type' => MENU_LOCAL_TASK); 'type' => MENU_LOCAL_TASK);
$items[] = array('path' => 'node/'. arg(1) .'/delete', 'title' => t('delete'), $items[] = array('path' => 'node/'. arg(1) .'/delete', 'title' => t('Delete'),
'callback' => 'drupal_get_form', 'callback' => 'drupal_get_form',
'callback arguments' => array('node_delete_confirm'), 'callback arguments' => array('node_delete_confirm'),
'access' => node_access('delete', $node), 'access' => node_access('delete', $node),
'weight' => 1, 'weight' => 1,
'type' => MENU_CALLBACK); 'type' => MENU_CALLBACK);
$revisions_access = ((user_access('view revisions') || user_access('administer nodes')) && node_access('view', $node) && db_result(db_query('SELECT COUNT(vid) FROM {node_revisions} WHERE nid = %d', arg(1))) > 1); $revisions_access = ((user_access('view revisions') || user_access('administer nodes')) && node_access('view', $node) && db_result(db_query('SELECT COUNT(vid) FROM {node_revisions} WHERE nid = %d', arg(1))) > 1);
$items[] = array('path' => 'node/'. arg(1) .'/revisions', 'title' => t('revisions'), $items[] = array('path' => 'node/'. arg(1) .'/revisions', 'title' => t('Revisions'),
'callback' => 'node_revisions', 'callback' => 'node_revisions',
'access' => $revisions_access, 'access' => $revisions_access,
'weight' => 2, 'weight' => 2,
...@@ -1175,7 +1175,7 @@ function node_menu($may_cache) { ...@@ -1175,7 +1175,7 @@ function node_menu($may_cache) {
); );
$items[] = array( $items[] = array(
'path' => 'admin/content/types/'. $type_url_str .'/delete', 'path' => 'admin/content/types/'. $type_url_str .'/delete',
'title' => t('delete'), 'title' => t('Delete'),
'callback' => 'drupal_get_form', 'callback' => 'drupal_get_form',
'callback arguments' => array('node_type_delete_confirm', $type), 'callback arguments' => array('node_type_delete_confirm', $type),
'type' => MENU_CALLBACK, 'type' => MENU_CALLBACK,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment