0

I am going crazy on this one :-/

I have overridden my user edit page with a user-profile-edit.tpl.php

In my template I have:

function mytheme_theme() {
  $items = array();
  $items['user_profile_form'] = array(
    'render element' => 'form',
    'path' => drupal_get_path('theme', 'mytheme') . '/template',
    'template' => 'user-profile-edit',
    'preprocess functions' => array(
      'mytheme_preprocess_user_profile_form'
    ),
  );
  return $items;
}

My problem is that my user-profile-edit.tpl.php is not being picked up by user#1, it is working however for all other authenticated users.

Is there some setting i am overlooking here?

2
  • Is the theme same for admin and authenticated users ? Commented Nov 18, 2014 at 21:23
  • Cool! Writing the answer for the same. Commented Nov 18, 2014 at 21:35

1 Answer 1

0

It seems that your themes are different for your users because the template name is fine. It will work fine with the theme in which you have added the template.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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