array( 'name' => ts('Edit'), 'url' => CRM_Utils_System::currentPath(), 'qs' => 'action=update&id=%%id%%', 'title' => ts('Edit Mailing Component'), ), CRM_Core_Action::DISABLE => array( 'name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Mailing Component'), ), CRM_Core_Action::ENABLE => array( 'name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Mailing Component'), ), ); } return self::$_links; } /** * Get name of edit form. * * @return string * Classname of edit form. */ public function editForm() { return 'CRM_Mailing_Form_Component'; } /** * Get edit form name. * * @return string * name of this page. */ public function editName() { return 'Mailing Components'; } /** * Get user context. * * @param null $mode * * @return string * user context. */ public function userContext($mode = NULL) { return CRM_Utils_System::currentPath(); } /** * @param null $args * @param null $pageArgs * @param null $sort */ public function run($args = NULL, $pageArgs = NULL, $sort = NULL) { return parent::run($args, $pageArgs, "component_type, is_default desc, name"); } }