function getHooksFromDoc() {
global $doc;
$content = file_get_contents( $doc );
+ $m = array();
preg_match_all( "/\n'(.*?)'/", $content, $m);
return $m[1];
}
*/
function getHooksFromFile( $file ) {
$content = file_get_contents( $file );
+ $m = array();
preg_match_all( "/wfRunHooks\(\s*\'(.*?)\'/", $content, $m);
return $m[1];
}