The function name is too generic can you change it to pkg_cap_event or pkg_call_plugins ....