View source
<?php
function oa_notifications_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "page_manager" && $api == "pages_default") {
return array(
"version" => "1",
);
}
}
function oa_notifications_flag_default_flags() {
$flags = array();
$flags['subscribe_section_content'] = array(
'entity_type' => 'node',
'title' => 'Section Content Subscribe',
'global' => 0,
'types' => array(),
'flag_short' => 'Follow',
'flag_long' => 'Follow to receive messages related to this content',
'flag_message' => 'Following',
'unflag_short' => 'UnFollow',
'unflag_long' => 'UnFollow to stop receiving messages about this content',
'unflag_message' => 'UnFollowed',
'unflag_denied_text' => '',
'link_type' => 'toggle',
'weight' => 0,
'show_in_links' => array(),
'show_as_field' => FALSE,
'show_on_form' => 0,
'access_author' => '',
'show_contextual_link' => FALSE,
'i18n' => 0,
'api_version' => 3,
'module' => 'oa_notifications',
'locked' => array(
0 => 'name',
),
);
return $flags;
}