You are here

public function MembersActivity::construct in Heartbeat 6.4

Same name and namespace in other branches
  1. 7 modules/heartbeat_og/streams/membersactivity.inc \MembersActivity::construct()

Fake constructor to hook this method instead of the constructor.

Overrides HeartbeatAccess::construct

File

modules/og_activity/membersactivity.inc, line 24

Class

MembersActivity
Class MembersActivity Concrete class to prepare messages for the current user and all of his/her relations.

Code

public function construct() {

  // Where the user id is a member of the group
  // and where the nid target is the group nid
  $this
    ->setGroup();
  drupal_add_js(drupal_get_path('module', 'og_activity') . '/og_activity.js');
  drupal_add_js(array(
    'group_nid' => $this->_gid,
  ), "setting");
}