X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FWci%2FForm%2FWCISettings.php;h=a18348f2b4ae2f90c7649d76cf6e4d976ab48bf4;hb=8966f337b02ca9269bb2836574c65bb0641c0167;hp=5fb20fa2412a5683d2cec5e98e6faf0b3393137b;hpb=4f895956c2b17edba10dae303684ea17500b8462;p=com.zyxware.civiwci.git diff --git a/CRM/Wci/Form/WCISettings.php b/CRM/Wci/Form/WCISettings.php index 5fb20fa..a18348f 100644 --- a/CRM/Wci/Form/WCISettings.php +++ b/CRM/Wci/Form/WCISettings.php @@ -30,13 +30,13 @@ class CRM_Wci_Form_WCISettings extends CRM_Core_Form { $this->addButtons(array( array( 'type' => 'submit', - 'name' => ts('Submit'), + 'name' => ts('Save'), 'isDefault' => TRUE, ), )); - $widgetId = civicrm_api3('setting', 'getValue', array('group' => 'extensions', 'name' => 'default_wci_widget')); - $defProf = civicrm_api3('setting', 'getValue', array('group' => 'extensions', 'name' => 'default_wci_profile')); + $widgetId = civicrm_api3('setting', 'getValue', array('group' => 'Wci Preference', 'name' => 'default_wci_widget')); + $defProf = civicrm_api3('setting', 'getValue', array('group' => 'Wci Preference', 'name' => 'default_wci_profile')); $this->setDefaults(array( 'default_widget' => $widgetId)); @@ -45,7 +45,7 @@ class CRM_Wci_Form_WCISettings extends CRM_Core_Form { // export form elements $this->assign('elementNames', $this->getRenderableElementNames()); - CRM_Utils_System::setTitle(ts('WCI Settings')); + CRM_Utils_System::setTitle(ts('Widget Settings')); parent::buildQuickForm(); } @@ -54,6 +54,7 @@ class CRM_Wci_Form_WCISettings extends CRM_Core_Form { $values = $this->exportValues(); civicrm_api3('setting', 'create', array('domain_id' => 1, 'default_wci_widget' => $values['default_widget'],)); civicrm_api3('setting', 'create', array('domain_id' => 1, 'default_wci_profile' => $values['default_profile'],)); + CRM_Core_Session::setStatus(ts('Widget settings are saved to database'), '', 'success'); parent::postProcess(); }