function initializeModule($request_method, $request_data) { if (!empty($this->shared_data['group_info'])) { $this->gid = $this->shared_data['group_info']->collection_id; $this->view_type = "all"; if ($this->shared_data['group_info']->group_type == "typedgroup") { PA::$config->useTypedGroups = true; require_once 'api/Entity/TypedGroupEntity.php'; $this->entity = TypedGroupEntity::load_for_group((int) $this->gid); $this->entity_type = $this->entity->entity_type; PA::$group_noun = $this->entity->entity_type; // echo "<pre>".print_r($this->entity, 1)."</pre>";exit; } } $this->network_info = PA::$network_info; global $paging; $this->Paging["page"] = $paging["page"]; $this->Paging["show"] = $paging["show"]; $this->page_user = NULL; if (PA::$page_uid && PA::$page_uid != PA::$login_uid) { $user = new User(); $user->load(PA::$page_uid); $this->page_user = $user->get_name(); } }