I'm trying to add a block to a specific theme (garland), but no matter what theme I switch to, I'm always shown the admin theme.

If I only have a single theme (garland) enabled, I can access the blocks I need, but there has to be a reason for this.

Edit: Discovered that this is being caused by the module "RealName" I have no idea where to look for the culprit though. Any suggestions?

Edit2: Found this explanation, but no real fix. Suggestions?

  • What are the modules installed and enabled? – Capi Etheriel Jan 9 '12 at 19:18
  • I have seen this behavior happen with the switchtheme module. Do you have that one installed? – Stan Ascher Jan 10 '12 at 8:09

Ended up using hefox's (from Drupal comments) fix

function realname_user($op, &$edit, &$account, $category = NULL) {
    global $theme;
  if (!$theme) return; // prevent realname from overiding theme on block pages

I did add in my own code as a safeguard, in the if statement, the condition that we were on the blocks page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.