You are here

function heartbeat_plugins_flag_default_flags in Heartbeat 7

Implements hook_flag_default_flags().

File

modules/heartbeat_plugins/heartbeat_plugins.module, line 234

Code

function heartbeat_plugins_flag_default_flags() {
  $flags = array();
  foreach (heartbeat_plugins_get_active_plugins() as $pluginWrapper) {
    $plugin = $pluginWrapper
      ->getPlugin();
    if ($plugin instanceof HeartbeatFlagPlugin && $plugin
      ->hasDefaultFlags()) {
      $flags += $plugin
        ->flagDefaults();
    }
  }
  return $flags;
}