HideActionHook¶
New in version 6.0.
In some cases, you may want your extension to hide built-in actions. This can be used to remove unwanted functionality, or to hide the defaults so you can replace them with your own custom behavior.
Simply initialize the hook with a list of the
action_id of the actions that
you want to hide.
Example¶
from reviewboard.extensions.base import Extension
from reviewboard.extensions.hooks import HideActionHook
class SampleExtension(Extension):
def initialize(self) -> None:
HideActionHook(self, action_ids=['support-menu'])