You are here

protected function AvailabilityCalendarStylesFormBuilder::fieldsetTable in Availability Calendars 7.5

Same name and namespace in other branches
  1. 7.3 availability_calendar.styles.inc \AvailabilityCalendarStylesFormBuilder::fieldsetTable()
  2. 7.4 availability_calendar.styles.inc \AvailabilityCalendarStylesFormBuilder::fieldsetTable()

Helper method to create the fieldset for the table styles.

1 call to AvailabilityCalendarStylesFormBuilder::fieldsetTable()
AvailabilityCalendarStylesFormBuilder::exec in ./availability_calendar.styles.inc

File

./availability_calendar.styles.inc, line 131

Class

AvailabilityCalendarStylesFormBuilder

Code

protected function fieldsetTable() {
  $this->currentFieldset = 'table';
  $this->form[$this->currentFieldset] = array(
    '#type' => 'fieldset',
    '#title' => t('Table'),
    '#description' => t('Styles that define how the table will be displayed.'),
  );
  $this
    ->selectField('font-size', array(
    'larger',
    'smaller',
    'xx-small',
    'x-small',
    'small',
    'medium',
    'large',
    'x-large',
    'xx-large',
  ));
  $this
    ->colorField('color');
  $this
    ->colorField('background-color');
  $this
    ->lengthField('border-width');
  $this
    ->colorField('border-color');
}