Questions tagged [hook]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
133 views

is there a hook when a member resets it's password?

is there a hook when a member uses the forget password feature? Looking at the hooks documentation, I don't see any hook in there that might do this.
9
votes
1answer
181 views

Turn off extension in Control Panel

I would like to make sure an extension isn't run, via sessions_end hook, in the control panel. I'm currently doing this like so: if ($this->EE->input->get_post('D') == "cp") { return ...
5
votes
1answer
523 views

Multiple Hooks, One Extension

In the documentation the code to add enable extension hooks is like this $data = array( 'class' => __CLASS__, 'method' => 'truncate_this', 'hook' => '...
3
votes
1answer
54 views

Are there hooks I can use to log file downloads

I'm working on a module to log some statistics on downloads from anywhere in the site. My module setup is fine, it installs and creates the necessary tables. Now I want to hook into the events, file ...
2
votes
1answer
39 views

Cancelling member deletion in member_delete hook handler

I am trying to implement some codein the member_delete hook in EE. But for testing purposes, I just want the hook to trigger but don't go ahead with the actual delete. Is there a way to do this? In ...
1
vote
1answer
81 views

Changing languages in sessions_start hook

I am trying to implement a multilanguage site. I have a hook handler for the hook sessions_start that is supposed to set the language for a page. Here are the lines of code from the hook to change ...
0
votes
1answer
136 views

Is it possible for the hook handler of safecracker_submit_entry_start to cancel form submission?

I have a hook handler for safecracker_submit_entry_start that gets some value from a form field and processes it. I want to validate the output of that process. If the output is good, then continue ...
0
votes
2answers
126 views

Structure of an Extension

I am trying to learn how exactly hooks and extensions are used. I am using expresso-store and have a function I need to call when the order is complete and gets to the success page (on hook '...