Beispiel #1
0
 /**
  * Get the action links for this page.
  *
  * @param null
  *
  * @return array  array of action links that we need to display for the browse screen
  * @access public
  */
 function &actionLinks()
 {
     if (!isset(self::$_actionLinks)) {
         self::$_actionLinks = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit Price Field'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=update&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Edit Price')), CRM_Core_Action::PREVIEW => array('name' => ts('Preview Field'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=preview&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Preview Price')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=delete&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Delete Price')));
     }
     return self::$_actionLinks;
 }
Beispiel #2
0
 /**
  * Get the action links for this page.
  *
  * @param null
  *
  * @return array  array of action links that we need to display for the browse screen
  * @access public
  */
 function &actionLinks()
 {
     if (!isset(self::$_actionLinks)) {
         // helper variable for nicer formatting
         $deleteExtra = ts('Are you sure you want to delete this price field?');
         self::$_actionLinks = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit Price Field'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=update&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Edit Price')), CRM_Core_Action::PREVIEW => array('name' => ts('Preview Field'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=preview&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Preview Price')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Price')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Price')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/price/field', 'qs' => 'action=delete&reset=1&sid=%%sid%%&fid=%%fid%%', 'title' => ts('Delete Price'), 'extra' => 'onclick = "return confirm(\'' . $deleteExtra . '\');"'));
     }
     return self::$_actionLinks;
 }