$config = CRM_Core_Config::singleton();
$template = CRM_Core_Smarty::singleton();
-$widgetId = civicrm_api3('setting', 'getValue', array('group' => 'extensions', 'name' => 'default_wci_widget'));
+$widgetId = CRM_Utils_Request::retrieve('widgetId', 'Positive', CRM_Core_DAO::$_nullObject);
+if(empty($widgetId)) {
+ $widgetId = civicrm_api3('setting', 'getValue', array('group' => 'wci', 'name' => 'default_wci_widget'));
+}
$embed = CRM_Utils_Request::retrieve('embed', 'Positive', CRM_Core_DAO::$_nullObject);
if (isset($format)) {
<?php
return array(
'default_wci_widget' => array(
- 'group_name' => 'extensions',
- 'group' => 'extensions',
+ 'group_name' => 'Wci Preference',
+ 'group' => 'wci',
'name' => 'default_wci_widget',
'type' => 'Integer',
'default' => 0,
'help_text' => 'Sets default widget id',
),
'default_wci_profile' => array(
- 'group_name' => 'extensions',
- 'group' => 'extensions',
+ 'group_name' => 'Wci Preference',
+ 'group' => 'wci',
'name' => 'default_wci_profile',
'type' => 'Integer',
'default' => 0,