src/Webtrees/Hook/Hook.php
public function subscribe($hsubscriber){
		if(HookProvider::getInstance()->isModuleOperational()){
			Database::prepare(
					"INSERT IGNORE INTO `##maj_hooks` (majh_hook_function, majh_hook_context, majh_module_name)".
					" VALUES (?, ?, ?)"
			)->execute(array($this->hook_function, $this->hook_context, $hsubscriber));
		}
	}
public function subscribe($hsubscriber){
		if(HookProvider::getInstance()->isModuleOperational()){
			Database::prepare(
					"INSERT IGNORE INTO `##maj_hooks` (majh_hook_function, majh_hook_context, majh_module_name)".
					" VALUES (?, ?, ?)"
			)->execute(array($this->hook_function, $this->hook_context, $hsubscriber));
		}
	}
public function subscribe ( $ hsubscriber ) { if ( HookProvider :: getInstance ( ) -> isModuleOperational ( ) ) { Database :: prepare ( "INSERT IGNORE INTO `##maj_hooks` (majh_hook_function, majh_hook_context, majh_module_name)" . " VALUES (?, ?, ?)" ) -> execute ( array ( $ this -> hook_function , $ this -> hook_context , $ hsubscriber ) ) ; } }
Subscribe a class implementing HookSubscriberInterface to the Hook
The Hook is by default enabled.

@param string $hsubscriber Name of the subscriber module
Subscribe a class implementing HookSubscriberInterface to the Hook The Hook is by default enabled .