/** * Register as a block and gateway plugin, even though this is a generic plugin. * This will allow the plugin to behave as a block and gateway plugin * @param $hookName string * @param $args array */ function callbackLoadCategory($hookName, $args) { $category =& $args[0]; $plugins =& $args[1]; switch ($category) { case 'blocks': $this->import('AnnouncementFeedBlockPlugin'); $blockPlugin = new AnnouncementFeedBlockPlugin($this->getName()); $plugins[$blockPlugin->getSeq()][$blockPlugin->getPluginPath()] =& $blockPlugin; break; case 'gateways': $this->import('AnnouncementFeedGatewayPlugin'); $gatewayPlugin = new AnnouncementFeedGatewayPlugin($this->getName()); $plugins[$gatewayPlugin->getSeq()][$gatewayPlugin->getPluginPath()] =& $gatewayPlugin; break; } return false; }