Using the proposed method described here (https://www.drupal.org/node/1779256), I tried inserting the functions proposed into the “template” file of our Custom theme, updated the YOURTHEME to our theme name (even tried without updating the theme name and had the same result). When I upload the template file and refresh the site, there is a failure, the site does not render, crashes. I end up having to restore the original template file in our customized theme.
Any thoughts on why adding these functions would cause a failure?
Works perfectly fine for me in the new theme created using apigee_responsive_starter_kit theme. Please find the steps i followed and see the code and actual results screenshot below.
would you mind attaching your template.php file so I can compare our Responsive version to yours? We have what I believe you customized for us so, I’m unsure why we are having issues here but you are successful? Plus, I can’t work with Ops until Monday to get them to check the logs to see why we get the failure.
When you use apigee_responsive_starterkit theme and follow instructions to create you own theme initially template.php is empty . Below code is all i have in template.php.
Thanks @asagar, the error reporting helped to identify the problem. I’m still stumped on the “how”, bc it happened again yesterday (and obviously the first time too), somehow, taking a copy of the template file from the custom folder, resulted in a copy of the Apigee Responsive template file. Don’t ask me how, bc I don’t even know the path to the Apigee theme. After a second attempt yesterday, I managed to download the correct template file from our theme folder (the same place I am downloading and uploading all the other customized code that I’m not having problems with) and added the two functions with success.
@Anil Sagar thanks for the answer. If I want to customise the user edit form as well , is it just a case of adding another hook, another preprocess function and the php template ?
Regarding, “If I want to customise the user edit form as well” , Can you please provide more context ? What exactly you mean “customise the user edit form” ?