You are here

function oa_notifications_subscribe_button in Open Atrium Notifications 7.2

Builds a Flags powered subscribe button. Only if user isn't on notifications.

1 call to oa_notifications_subscribe_button()
oa_notifications_form_fields in ./oa_notifications.module
Define the fields that are used for configuring notifications.

File

./oa_notifications.module, line 1335

Code

function oa_notifications_subscribe_button($node) {
  return array(
    '#type' => 'markup',
    '#markup' => flag_create_link('subscribe_section_content', $node->nid),
  );
}