Extension hook not being called?
I’ve got two extensions making use of the same hook: member_register_validate_members
With the following activation details respectively:
$DB->query($DB->insert_string('exp_extensions', array(
'extension_id' => '',
'class' => get_class($this),
'method' => 'subscribe_member',
'hook' => 'member_register_validate_members',
'settings' => '',
'priority' => 10,
'version' => $this->version,
'enabled' => 'y'
)));
$hook = array(
'extension_id' => '',
'class' => __CLASS__,
'method' => 'validate_members',
'hook' => 'member_register_validate_members',
'settings' => serialize($settings),
'priority' => 1,
'version' => $this->version,
'enabled' => 'y'
);
According to the documentation I would expect the validate_members method to be called first as it has a priority of 1, and it does exactly that, but for some reasons the subscribe_member method never get’s called/executed. I know this because I kill the script right at the top of the method like so:
function subscribe_member($member_id)
{
global $DB;
die("HERE?");
...
But just get presented with the normal “Account Activated” message.
I’m running EE 1.6.6 and can’t upgrade due to numerous core hacks
Any ideas?
Moved to Extensions Technical Support by Moderator
