You are here

protected function AvailabilityCalendarsStylesFormValidator::getStyle in Availability Calendars 6.2

Same name and namespace in other branches
  1. 7.2 availability_calendars.styles.inc \AvailabilityCalendarsStylesFormValidator::getStyle()

Helper method to return 1 style setting, (to not repeat the taking care of not being set, defaults, etc).

Parameters

string $name:

string $category the name of the category, NULL for the current fieldset:

3 calls to AvailabilityCalendarsStylesFormValidator::getStyle()
AvailabilityCalendarsStylesFormValidator::colorField in ./availability_calendars.styles.inc
AvailabilityCalendarsStylesFormValidator::fieldsetStates in ./availability_calendars.styles.inc
AvailabilityCalendarsStylesFormValidator::lengthField in ./availability_calendars.styles.inc

File

./availability_calendars.styles.inc, line 440

Class

AvailabilityCalendarsStylesFormValidator

Code

protected function getStyle($name, $category = NULL) {
  if ($category === NULL) {
    $category = $this->currentFieldset;
  }
  return isset($this->styles[$category][$name]) ? $this->styles[$category][$name] : '';
}