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. */ function editForm() { return 'CRM_Mailing_Form_Component'; } /** * Get edit form name * * @return string name of this page. */ function editName() { return 'Mailing Components'; } /** * Get user context. * * @return string user context. */ function userContext($mode = NULL) { return CRM_Utils_System::currentPath(); } function run($args = NULL, $pageArgs = NULL, $sort = NULL) { return parent::run($args, $pageArgs, "component_type, is_default desc, name"); } }