'4'); $options['alignment'] = array('default' => 'horizontal'); $options['fill_single_line'] = array('default' => TRUE, 'bool' => TRUE); $options['summary'] = array('default' => ''); $options['caption'] = array('default' => ''); return $options; } /** * Render the given style. */ public function options_form(&$form, &$form_state) { parent::options_form($form, $form_state); $form['columns'] = array( '#type' => 'textfield', '#title' => t('Number of columns'), '#default_value' => $this->options['columns'], '#required' => TRUE, '#element_validate' => array('views_element_validate_integer'), ); $form['alignment'] = array( '#type' => 'radios', '#title' => t('Alignment'), '#options' => array('horizontal' => t('Horizontal'), 'vertical' => t('Vertical')), '#default_value' => $this->options['alignment'], '#description' => t('Horizontal alignment will place items starting in the upper left and moving right. Vertical alignment will place items starting in the upper left and moving down.'), ); $form['fill_single_line'] = array( '#type' => 'checkbox', '#title' => t('Fill up single line'), '#description' => t('If you disable this option, a grid with only one row will have the same number of table cells (