Exemplo n.º 1
0
 /**
  * Get the action links for this page.
  *
  * @return array $_actionLinks
  *
  */
 function &actionLinks()
 {
     if (!isset(self::$_actionLinks)) {
         self::$_actionLinks = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/admin/uf/group/field/update', 'qs' => 'reset=1&action=update&id=%%id%%&gid=%%gid%%', 'title' => ts('Edit CiviCRM Profile Field')), CRM_Core_Action::PREVIEW => array('name' => ts('Preview'), 'url' => 'civicrm/admin/uf/group/field', 'qs' => 'action=preview&id=%%id%%&field=1', 'title' => ts('Preview CiviCRM Profile Field')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_UFField' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable CiviCRM Profile Field')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_Core_BAO_UFField' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable CiviCRM Profile Field')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/uf/group/field', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Enable CiviCRM Profile Field')));
     }
     return self::$_actionLinks;
 }
Exemplo n.º 2
0
 /**
  * Get the action links for this page.
  *
  * @return array
  */
 public static function &actionLinks()
 {
     if (!isset(self::$_actionLinks)) {
         self::$_actionLinks = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/admin/uf/group/field/update', 'qs' => 'reset=1&action=update&id=%%id%%&gid=%%gid%%', 'title' => ts('Edit CiviCRM Profile Field')), CRM_Core_Action::PREVIEW => array('name' => ts('Preview'), 'url' => 'civicrm/admin/uf/group/field', 'qs' => 'action=preview&id=%%id%%&field=1', 'title' => ts('Preview CiviCRM Profile Field')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable CiviCRM Profile Field')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable CiviCRM Profile Field')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/uf/group/field', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Enable CiviCRM Profile Field')));
     }
     return self::$_actionLinks;
 }