function heartbeat_plugins_flag_definitions in Heartbeat 7
Implements of hook_flag_definitions().
File
- modules/
heartbeat_plugins/ heartbeat_plugins.module, line 198
Code
function heartbeat_plugins_flag_definitions() {
$definitions = array();
foreach (heartbeat_plugins_get_active_plugins() as $pluginWrapper) {
$plugin = $pluginWrapper
->getPlugin();
if ($plugin instanceof HeartbeatFlagPlugin && $plugin
->hasFlagDefinitions()) {
$definitions += $plugin
->flagDefinitions();
}
}
return $definitions;
}