Skip to content

Instantly share code, notes, and snippets.

@aboutwout
Created July 9, 2011 00:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aboutwout/1073112 to your computer and use it in GitHub Desktop.
Save aboutwout/1073112 to your computer and use it in GitHub Desktop.
Adding a hook in ExpressionEngine
<?php
if ($this->EE->extensions->active_hook('your_module_hook') === TRUE)
{
$edata = $this->EE->extensions->universal_call('your_module_hook', $this, $param1, $param2);
if ($this->EE->extensions->end_script === TRUE) return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment