src/Webtrees/Hook/Hook.php
public function setPriority($hsubscriber, $priority){
		if(HookProvider::getInstance()->isModuleOperational()){
			Database::prepare(
			"UPDATE `##maj_hooks`".
			" SET majh_module_priority=?".
			" WHERE majh_hook_function=?".
			" AND majh_hook_context=?".
			" AND majh_module_name=?"
					)->execute(array($priority, $this->hook_function, $this->hook_context, $hsubscriber));
		}
	}
public function setPriority($hsubscriber, $priority){
		if(HookProvider::getInstance()->isModuleOperational()){
			Database::prepare(
			"UPDATE `##maj_hooks`".
			" SET majh_module_priority=?".
			" WHERE majh_hook_function=?".
			" AND majh_hook_context=?".
			" AND majh_module_name=?"
					)->execute(array($priority, $this->hook_function, $this->hook_context, $hsubscriber));
		}
	}
public function setPriority ( $ hsubscriber , $ priority ) { if ( HookProvider :: getInstance ( ) -> isModuleOperational ( ) ) { Database :: prepare ( "UPDATE `##maj_hooks`" . " SET majh_module_priority=?" . " WHERE majh_hook_function=?" . " AND majh_hook_context=?" . " AND majh_module_name=?" ) -> execute ( array ( $ priority , $ this -> hook_function , $ this -> hook_context , $ hsubscriber ) ) ; } }
Define the priority for execution of the Hook for the specific HookSubscriberInterface

@param string $hsubscriber Name of the subscriber module
@param int $priority Priority of execution
Define the priority for execution of the Hook for the specific HookSubscriberInterface