You are here

protected function AvailabilityCalendarStylesFormBuilder::fieldsetHeader in Availability Calendars 7.5

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

Helper method to create the fieldset for the table header styles.

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

File

./availability_calendar.styles.inc, line 164

Class

AvailabilityCalendarStylesFormBuilder

Code

protected function fieldsetHeader() {
  $this->currentFieldset = 'header';
  $this->form[$this->currentFieldset] = array(
    '#type' => 'fieldset',
    '#title' => t('Day names'),
    '#description' => t('Styles that define how the names of the weekdays will be displayed.'),
  );
  $this
    ->lengthField('height');
  $this
    ->selectField('text-align', array(
    'left',
    'right',
    'center',
    'inherit',
  ));
  $this
    ->selectField('font-weight', array(
    'normal',
    'bold',
    'bolder',
    'lighter',
    'inherit',
  ));
  $this
    ->selectField('font-style', array(
    'normal',
    'italic',
    'oblique',
    'inherit',
  ));
  $this
    ->selectField('font-size', array(
    'larger',
    'smaller',
    'xx-small',
    'x-small',
    'small',
    'medium',
    'large',
    'x-large',
    'xx-large',
    'inherit',
  ));
}