Exemplo n.º 1
0
 /**
  * Get action Links.
  *
  * @return array
  *   (reference) of action links
  */
 public function &links()
 {
     if (!self::$_links) {
         self::$_links = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/admin/sms/provider', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Provider')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/sms/provider', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Provider')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'ref' => 'crm-enable-disable', 'title' => ts('Enable Provider')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'ref' => 'crm-enable-disable', 'title' => ts('Disable Provider')));
     }
     return self::$_links;
 }
Exemplo n.º 2
0
 /**
  * Get action Links
  *
  * @return array (reference) of action links
  */
 function &links()
 {
     if (!self::$_links) {
         self::$_links = array(CRM_Core_Action::UPDATE => array('name' => ts('Edit'), 'url' => 'civicrm/admin/sms/provider', 'qs' => 'action=update&id=%%id%%&reset=1', 'title' => ts('Edit Provider')), CRM_Core_Action::DELETE => array('name' => ts('Delete'), 'url' => 'civicrm/admin/sms/provider', 'qs' => 'action=delete&id=%%id%%', 'title' => ts('Delete Provider')), CRM_Core_Action::ENABLE => array('name' => ts('Enable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_SMS_BAO_Provider' . '\',\'' . 'disable-enable' . '\' );"', 'ref' => 'enable-action', 'title' => ts('Enable Provider')), CRM_Core_Action::DISABLE => array('name' => ts('Disable'), 'extra' => 'onclick = "enableDisable( %%id%%,\'' . 'CRM_SMS_BAO_Provider' . '\',\'' . 'enable-disable' . '\' );"', 'ref' => 'disable-action', 'title' => ts('Disable Provider')));
     }
     return self::$_links;
 }