You are here

function _revisioning_set_custom_theme_if_necessary in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.module \_revisioning_set_custom_theme_if_necessary()

Set custom theme.

2 calls to _revisioning_set_custom_theme_if_necessary()
_revisioning_edit in ./revisioning.module
Callback for the primary Edit tab.
_revisioning_edit_revision in ./revisioning.module
Callback to edit a particular revision.

File

./revisioning.module, line 1216
Allows content to be updated and reviewed before submitting it for publication, while the current live revision remains unchanged and publicly visible until the changes have been reviewed and found fit for publication by a moderator.

Code

function _revisioning_set_custom_theme_if_necessary() {

  // Use the admin theme if the user specified this at Appearance >> Settings.
  // Note: first tick 'View the administration theme' at People >> Permissions.
  if (variable_get('node_admin_theme', FALSE)) {
    global $theme, $custom_theme;
    $custom_theme = variable_get('admin_theme', $theme);
  }
}