Trying to modify the template and translate some hard coded Strings on Drupal 7, I couldn't really easily find the architecture of a page. With the debug mode I can read in the code which .tpl is being used but nothing for the .php files.

Is there something like that in the documentation that I haven't yet found? or somewhere else?


Sometimes you can get clue from .tpl file form view source page. The other option is to find the page callback of the the url. Each CiviCRM url defined in menu xml file has a callback. The page callback gives the clue which file is being invoked. For eg civicrm/activity/view

If you a grep 'civicrm/activity/view' on CRM/ and open the xml file you will see something like this

     <title>View Activity</title>
     <access_arguments>access CiviCRM</access_arguments>

Which means the file CRM/Activity/Form/ActivityView.php is called in this situation.



  • Thanks for the tip Pradeep. We'll have look this way! – Guillaume Sorel Jun 10 '19 at 10:37

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.