|
|
@ -132,6 +132,17 @@ abstract class rcube_plugin
|
|
|
|
$this->api->register_hook($hook, $callback);
|
|
|
|
$this->api->register_hook($hook, $callback);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Unregister a callback function for a specific (server-side) hook.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param string $hook Hook name
|
|
|
|
|
|
|
|
* @param mixed $callback Callback function as string or array with object reference and method name
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function remove_hook($hook, $callback)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->api->unregister_hook($hook, $callback);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Load localized texts from the plugins dir
|
|
|
|
* Load localized texts from the plugins dir
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -315,6 +326,4 @@ abstract class rcube_plugin
|
|
|
|
return $this->ID.'.'.$key;
|
|
|
|
return $this->ID.'.'.$key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|