You are here

protected function AvailabilityCalendarStylesFormBuilder::fieldsetDays in Availability Calendars 7.5

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

Helper method to create the fieldset for the day styles.

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

File

./availability_calendar.styles.inc, line 194

Class

AvailabilityCalendarStylesFormBuilder

Code

protected function fieldsetDays() {
  $this->currentFieldset = 'days';
  $this->form[$this->currentFieldset] = array(
    '#type' => 'fieldset',
    '#title' => t('Days'),
    '#description' => t('Styles that define how a day cell will be displayed.'),
  );
  $this
    ->lengthField('width');
  $this
    ->lengthField('height');
  $this
    ->selectField('text-align', array(
    'left',
    'right',
    'center',
    'inherit',
  ));
  $this
    ->selectField('vertical-align', array(
    'baseline',
    'sub',
    'super',
    'top',
    'text-top',
    'middle',
    'bottom',
    'text-bottom',
  ));
}