'labelColumn',
// Non-translated machine name for programmatic lookup. Defaults to 'name' if that column exists
'nameColumn',
- // Where clause snippet (will be joined to the rest of the query with AND operator)
+ // Where clause snippet (will be joined to the rest of the query with AND operator)
'condition',
// callback funtion incase of static arrays
'callback',
$widget = $widgets[$table][$field];
// attributes
- $attributes = array('css' => '');
+ $attributes = array('class' => '');
if (isset($widget['rows'])) {
$attributes['rows'] = $widget['rows'];
}
if (isset($widget['cols'])) {
$attributes['cols'] = $widget['cols'];
}
- // FIXME: should have this
$required = !empty($widget['required']);
-
+
$languages = CRM_Core_I18n::languages(TRUE);
foreach ($this->_locales as $locale) {
$name = "{$field}_{$locale}";
$attributes['class'] .= ' default-lang';
}
if ($widget['type'] == 'RichTextEditor') {
- $attributes['click_wysiwyg'] = TRUE;
- $this->addWysiwyg($name, $languages[$locale], $attributes, $required);
+ $attributes['class'] = ' collapsed';
+ $this->add('wysiwyg', $name, $languages[$locale], $attributes, $required);
}
else {
$this->add($widget['type'], $name, $languages[$locale], $attributes, $required);