function heartbeat_plugins_heartbeat_plugin_info in Heartbeat 7
Implementation of hook_heartbeat_plugin_info(). Built-in default plugins that can be used with heartbeat.
File
- modules/
heartbeat_plugins/ heartbeat_plugins.module, line 33
Code
function heartbeat_plugins_heartbeat_plugin_info() {
$plugin_names = array();
$plugin_name = new HeartbeatPluginWrapper();
$plugin_name->disabled = FALSE;
/* Edit this to true to make a default plugin_name disabled initially */
$plugin_name->api_version = 1;
$plugin_name->plugin_name = 'activitystatus';
$plugin_name->label = 'User activity status form above stream';
$plugin_name->module = 'heartbeat_plugins';
$plugin_name->settings = array();
$plugin_names['activitystatus'] = $plugin_name;
if (module_exists('flag')) {
$plugin_name = new HeartbeatPluginWrapper();
$plugin_name->disabled = FALSE;
/* Edit this to true to make a default plugin_name disabled initially */
$plugin_name->api_version = 1;
$plugin_name->plugin_name = 'flagattachment';
$plugin_name->label = 'Flag link attachments with a count';
$plugin_name->module = 'heartbeat_plugins';
$plugin_name->settings = array(
'attachment' => 1,
'count_enabled' => 1,
);
$plugin_names['flagattachment'] = $plugin_name;
}
if (module_exists('shoutbox')) {
$plugin_name = new HeartbeatPluginWrapper();
$plugin_name->disabled = FALSE;
/* Edit this to true to make a default plugin_name disabled initially */
$plugin_name->api_version = 1;
$plugin_name->plugin_name = 'shoutbox';
$plugin_name->label = 'Shoutbox form above stream';
$plugin_name->module = 'heartbeat_plugins';
$plugin_name->settings = array();
$plugin_names['shoutbox'] = $plugin_name;
}
if (module_exists('og')) {
$plugin_name = new HeartbeatPluginWrapper();
$plugin_name->disabled = FALSE;
/* Edit this to true to make a default plugin_name disabled initially */
$plugin_name->api_version = 1;
$plugin_name->plugin_name = 'og';
$plugin_name->label = 'Organic group streams and access restriction specific to groups';
$plugin_name->module = 'heartbeat_plugins';
$plugin_name->settings = array();
$plugin_names['og'] = $plugin_name;
}
return $plugin_names;
}