Hi,
I was hoping that someone might help me understand the difference between actions and hooks. I’m developing a module for Sphinx, a full-text search engine (http://ellislab.com/forums/viewthread/85055/).
I need two things:
1) An action/hook that gets executed any time that a field group or field is added or modified 2) A control panel option to manually trigger the action/hook.
Thanks, Mike
Both of those should work fine. You need to find an appropriate hook for #1 (it should exist), because you’re looking for changes that happen through interaction with the control panel (although it can also fire off through interaction from the front end if you choose the right hook). #2 sounds like it will be an action that you develop within your module.
Okay, I think I’m getting the hang of things better. Thanks for the reply guys. I spent some time looking Mark Huot’s implementation of the Checkboxes plugin. I see that he implemented an extension for the show_full_control_panel_end hook.
Now, just to be sure I’m understanding things correctly, that hook in particular gets called everytime a form finishes rendering and C=admin is included in the URL. It’s used to do search/replace stuff with the HTML (passed in as $out).
I suppose things could break if the regex patterns weren’t speciifc enough, otherwise you could have your extension modifiying the output of pages that it wasn’t intended for.
Am I getting it?
Thanks again, Mike
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.