function getWidgets() { $options = array('' => ts('- select -')); $widgList = CRM_Wci_BAO_Widget::getWidgetList(); foreach ($widgList as $widg) { $options[$widg['id']] = $widg['title']; } return $options; }