title: drupal 7: no hooks run on page load
body: <p>I have site on drupal 7. I'm creating a module to add a poll on-page instead of a template string.
  As I understand, I should do it in some hook-like hook_page_load, hook_init, hook_boot, etc
  I created some hooks in my autopolling.module:</p>
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  error_log(&quot;in autopolling\n&quot;,3,'D:\\TEMP\\temp\\php.log');
  
  function autopolling_block_info(){
      error_log(&quot;autopolling_block_info\n&quot;,3,'D:\\TEMP\\temp\\php.log');
      $blocks['myblock'] = array(
          'info' =&gt; t(&quot;My custom block&quot;),
      );
      return $blocks;
  }
  
  function autopolling_node_insert($node) {
      error_log(&quot;autopolling_node_insert\n&quot;,3,'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_insert($node) {
      error_log(&quot;autopolling_insert\n&quot;,3,'D:\\TEMP\\temp\\php.log');
  }
  
  function autopolling_page_alter(&amp;$page) {
      error_log('autopolling_page_alter',3,'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_node_load($nodes, $types)
  {
      error_log(&quot;autopolling_node_load\n&quot;, 3, 'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_node_view($entity, $type, $view_mode, $langcode)
  {
      error_log('autopolling_node_view', 3, 'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_entity_view($entity, $type, $view_mode, $langcode) {
      error_log('autopolling_entity_view',3,'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_page_build(&amp;$page) {
      error_log('autopolling_page_build',3,'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_init() {
      error_log('autopolling_init',3,'D:\\TEMP\\temp\\php.log');
  }
  function autopolling_boot() {
      error_log(&quot;autopolling_boot\n&quot;,3,'D:\\TEMP\\temp\\php.log');
  }
  </code></pre>
  <p>but I've got only &quot;in autopolling&quot; string in my log file (and &quot;autopolling_block_info&quot; if I open admin/structure/block &amp; &quot;autopolling_node_insert&quot; when I add a page).</p>
  <p>So, hook_node_load should work, but I've got no record about it. And no records about any other &quot;loading&quot; hook.</p>
  <p>I have no errors in drupal journal.</p>
  <p>What I'm doing wrong?</p>