Why do only some of my hooks get called? I made a test module and only a few of my hooks seem to get called. I get the Javascript console messages for the block_view, form_alter and form_user_login_alter hook functions when I do the corresponding actions. However, when I login, logout, view a node, create a node or delete a node I get nothing in the console. Shouldn't these hooks get called when I do those things? I reset my cache, disabled and enabled my module multiple times.
Here is the code for test_module.module:

&lt;?php

function console_log ($stringIn) {
    print "&lt;script&gt;console.log('" . $stringIn . "');&lt;/script&gt;";
}
function test_module_help ($path, $arg) {
    switch($path) {
        case "admin/help#test_module":
            return '&lt;p&gt;' . t("This is just a test module right now.") . '&lt;/p&gt;';
            break;
    }
}
function test_module_insert ($node) {
    console_log("node inserted");
}
function test_module_user_login_submit (&amp;$form, &amp;$form_state) {
    console_log("login submitted");
}
function test_module_block_view ($delta = '') {
    console_log("block viewed");
}
function test_module_user_login (&amp;$edit, $account) {
    console_log("user logged in");
}
function test_module_user_logout ($account) {
    console_log("user logged out");
}
function test_module_view ($node, $view_mode) {
    console_log("node viewed");
}
function test_module_form_alter (&amp;$form, $form_state, $form_id) {
    console_log("form altered");
}
function test_module_delete ($node) {
    console_log("node deleted");
}
function test_module_form_user_login_alter(&amp;$form, &amp;$form_state, $form_id) {
    console_log("user login form altered");
}


Here is the test_module.info file:

name = Test Module
description = just a test module
package = ZZ Test category
core = 7.x


Those two files are in sites/all/modules/test_module/

What am I doing wrong?
I'm surprised doing a 'print' works at all and does not produce a headers already sent error.
Your hooks may well be being called.
Instead of calling your own console.log function, install the devel module and call dpm('my message');
It will give you a much better idea of what hook is and is not being called.  

eg. (your module with devel enabled).  

function test_module_help ($path, $arg) {
    switch($path) {
        case "admin/help#test_module":
            return '&lt;p&gt;' . t("This is just a test module right now.") . '&lt;/p&gt;';
            break;
    }
}
function test_module_insert ($node) {
    dpm("node inserted");
}
function test_module_user_login_submit (&amp;$form, &amp;$form_state) {
    dpm("login submitted");
}
function test_module_block_view ($delta = '') {
    dpm("block viewed");
}
function test_module_user_login (&amp;$edit, $account) {
    dpm("user logged in");
}
function test_module_user_logout ($account) {
    dpm("user logged out");
}
function test_module_view ($node, $view_mode) {
    dpm("node viewed");
}
function test_module_form_alter (&amp;$form, $form_state, $form_id) {
    dpm("form altered");
}
function test_module_delete ($node) {
    dpm("node deleted");
}
function test_module_form_user_login_alter(&amp;$form, &amp;$form_state, $form_id) {
    dpm("user login form altered");
}