0

The question is is self-explanatory!

Another question, suppose I have a template file named a-b--c--d.tpl.php

What would be the preprocessor function for this template file? I suppose themename_preprocess_a_b__c__d(&$vars)?

Sorry for my poor knowledge. I'm newbie to drupal & started with drupal 7.

2
  • 1
    The question has been asked on stackoverflow stackoverflow.com/questions/6064876/…
    – Onita
    Commented Oct 18, 2011 at 16:05
  • Thanks @Onita didn't check SO. Can you please answer the 2nd question I made? Thanks :)
    – Shafiul
    Commented Oct 18, 2011 at 16:31

1 Answer 1

0

For the template

If the page is "/my-node", the page template will be "page--my-node.tpl.php".

For the Prepocess

But you cannot using it "themename_preprocess_my_node(&$vars)" because my-node isn't a hook ! You can find differents hooks with this page http://api.drupal.org/api/drupal and with the search box, type 'theme_'. You can see the differents hooks for the preprocess

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.