I'm really stumped with this, as I posted here. I tried another test, totally cut-down version of my module. The only code it contains is this:
function testnodeapi_form_alter($form_id, &$form) {
if (!isset($GLOBALS['testnodeapi_counter'])) {
$GLOBALS['testnodeapi_counter'] = 0;
}
else {
$GLOBALS['testnodeapi_counter'] = $GLOBALS['testnodeapi_counter'] + 1;
}
//$testnodeapi_counter += 1;
drupal_set_message('The test counter is : '.$GLOBALS['testnodeapi_counter']);
}
Now I have two mysteries instead of one:
MYSTERY 1: The testnodeapi_counter never gets updated, it always appears with value zero.
MYSTERY 2: The message appears BOTH when the node form is displayed, AND in the view displayed AFTER the submit button has been pressed
I have been staring at this so long now it is possible that there is something obvious I've missed - but what.
Strange too - I've been spoilt I guess, got used to always getting quick help on these forums. But lately I've found my messages going completely unanswered. Perhaps I've not contributed enough? So I made a resolution to start the day by checking the latest posts and answering anything I could - though I often feel a bit inexpert compared with other people on the site.
But I would really appreciate help on this one - I'm completely stumped upgrading my "Checkout" m