I’ve had to pick up a web app built with Drupal – I need to edit a link that is on the front end. It is a single page app – but when I open index.php there is a link to a bootstrap.inc which contains over 11000 lines of code none of which relate to the front end.
Share
In Drupal,
index.phpis a router. It gets a request from the server, with the path added to it. It then routes the request through many (complex) layers to create the HTML.I suggest you read up on the basics of Drupal before diving head-first into the application.
Based on your question, you seem to completely misunderstand the basics of Drupals routing, to beging with.
my_bar_page. This function is available in this module.my_bar_pageis called. Its output should be HTML.Note that this is a very much simplified version of what actually goes on. The reality is a gigantic (spaggetti, some might say) of callbacks, caching layers, hooks and theme-layers.