- Patch #934790 by agentrickard: use _node_custom_theme() for revision callbacks.

merge-requests/26/head
Dries Buytaert 2010-10-11 21:00:33 +00:00
parent ebaa90dc6b
commit c54107146b
1 changed files with 3 additions and 0 deletions

View File

@ -1968,6 +1968,7 @@ function node_menu() {
'page arguments' => array(1), 'page arguments' => array(1),
'access callback' => '_node_revision_access', 'access callback' => '_node_revision_access',
'access arguments' => array(1), 'access arguments' => array(1),
'theme callback' => '_node_custom_theme',
'weight' => 2, 'weight' => 2,
'type' => MENU_LOCAL_TASK, 'type' => MENU_LOCAL_TASK,
'file' => 'node.pages.inc', 'file' => 'node.pages.inc',
@ -1987,6 +1988,7 @@ function node_menu() {
'page arguments' => array('node_revision_revert_confirm', 1), 'page arguments' => array('node_revision_revert_confirm', 1),
'access callback' => '_node_revision_access', 'access callback' => '_node_revision_access',
'access arguments' => array(1, 'update'), 'access arguments' => array(1, 'update'),
'theme callback' => '_node_custom_theme',
'file' => 'node.pages.inc', 'file' => 'node.pages.inc',
); );
$items['node/%node/revisions/%/delete'] = array( $items['node/%node/revisions/%/delete'] = array(
@ -1996,6 +1998,7 @@ function node_menu() {
'page arguments' => array('node_revision_delete_confirm', 1), 'page arguments' => array('node_revision_delete_confirm', 1),
'access callback' => '_node_revision_access', 'access callback' => '_node_revision_access',
'access arguments' => array(1, 'delete'), 'access arguments' => array(1, 'delete'),
'theme callback' => '_node_custom_theme',
'file' => 'node.pages.inc', 'file' => 'node.pages.inc',
); );
return $items; return $items;