Does Drupal use parsing (and / or triggering) hooks that are not related to content loaded by the current user?
For example, let's say I had a module installed and active foowith the following hooks:
<?php
function foo_menu() {
$items = array();
$items['foo/show'] = array(
'title' => t('Foo!'),
'page callback' => 'foo_display_all',
'description' => 'All our foo are belong to you',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
function foo_display_all() {
}
Will Drupal analyze (and thus affect load time) for pages that are not listed in foo_menu? In other words, will length and complexity foo_display_allaffect the loading of www.example.com/bar?
If two different questions arise, I will say that I will be grateful for an explanation (or a link to an explanation) about how and why Drupal performs or does not analyze, and not the yes / no answer.