array( 'name' => ts('Edit'), 'url' => 'civicrm/admin/mapping', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Mapping'), ), CRM_Core_Action::DELETE => array( 'name' => ts('Delete'), 'url' => 'civicrm/admin/mapping', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Mapping'), ), ); } return self::$_links; } /** * Get name of edit form * * @return string Classname of edit form. */ function editForm() { return 'CRM_Admin_Form_Mapping'; } /** * Get form name for edit form * * @return string name of this page. */ function editName() { return 'Mapping'; } /** * Get form name for delete form * * @return string name of this page. */ function deleteName() { return 'Mapping'; } /** * Get user context. * * @param null $mode * * @return string user context. */ function userContext($mode = NULL) { return 'civicrm/admin/mapping'; } /** * Get name of delete form * * @return string Classname of delete form. */ function deleteForm() { return 'CRM_Admin_Form_Mapping'; } /** * Run the basic page * * @return void */ function run() { $sort = 'mapping_type asc'; return parent::run($sort); } }