Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?php |
2 | /* | |
3 | +--------------------------------------------------------------------+ | |
bc77d7c0 | 4 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 5 | | | |
bc77d7c0 TO |
6 | | This work is published under the GNU AGPLv3 license with some | |
7 | | permitted exceptions and without any warranty. For full license | | |
8 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
9 | +--------------------------------------------------------------------+ |
10 | */ | |
11 | ||
12 | /** | |
13 | * | |
14 | * @package CRM | |
ca5cec67 | 15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
6a488035 TO |
16 | */ |
17 | ||
18 | /** | |
5709ac86 | 19 | * Dummy page for actions button. |
6a488035 TO |
20 | */ |
21 | class CRM_Contact_Page_Inline_Actions extends CRM_Core_Page { | |
22 | ||
23 | /** | |
24 | * Run the page. | |
25 | * | |
26 | * This method is called after the page is created. | |
6a488035 | 27 | */ |
00be9182 | 28 | public function run() { |
1be22cfb | 29 | $contactId = CRM_Utils_Request::retrieve('cid', 'Positive', CRM_Core_DAO::$_nullObject, TRUE); |
6a488035 TO |
30 | |
31 | $this->assign('contactId', $contactId); | |
32 | $this->assign('actionsMenuList', CRM_Contact_BAO_Contact::contextMenu($contactId)); | |
33 | CRM_Contact_Page_View::addUrls($this, $contactId); | |
34 | ||
35 | // also create the form element for the activity links box | |
36 | $controller = new CRM_Core_Controller_Simple('CRM_Activity_Form_ActivityLinks', | |
37 | ts('Activity Links'), | |
38 | NULL | |
39 | ); | |
40 | $controller->setEmbedded(TRUE); | |
41 | $controller->run(); | |
42 | ||
43 | // check logged in user permission | |
44 | CRM_Contact_Page_View::checkUserPermission($this, $contactId); | |
8ef12e64 | 45 | |
46 | // finally call parent | |
6a488035 TO |
47 | parent::run(); |
48 | } | |
96025800 | 49 | |
6a488035 | 50 | } |