/** * Function to get the default widgets * @return <array> - array of Widget models */ public function getDefaultWidgets() { $moduleModel = $this->getModule(); $parentWidgets = parent::getDefaultWidgets(); $widgets[] = array('contentType' => 'json', 'title' => 'Countries to be verified', 'mode' => 'open', 'url' => 'module=' . $moduleModel->getName() . '&view=ShowWidget&mode=getTbvCountries'); foreach ($widgets as $widget) { $widgetList[] = Vtiger_Widget_Model::getInstanceFromValues($widget); } return $widgetList; }
/** * Function to get the default widgets * @return <array> - array of Widget models */ public function getDefaultWidgets() { $moduleModel = $this->getModule(); $parentWidgets = parent::getDefaultWidgets(); $widgets[] = array('contentType' => 'json', 'title' => 'Opportunity By Sales Stage', 'mode' => 'open', 'url' => 'module=' . $moduleModel->getName() . '&view=ShowWidget&mode=getPotentialsCountBySalesStage'); foreach ($widgets as $widget) { $widgetList[] = Vtiger_Widget_Model::getInstanceFromValues($widget); } return $widgetList; }