protected function AvailabilityCalendarStylesFormValidator::getStyle in Availability Calendars 7.4
Same name and namespace in other branches
- 7.5 availability_calendar.styles.inc \AvailabilityCalendarStylesFormValidator::getStyle()
- 7.3 availability_calendar.styles.inc \AvailabilityCalendarStylesFormValidator::getStyle()
Helper method to return 1 style setting.
This prevents repeating taking care of values not being set, defaults, etc.
Parameters
string $name: The style setting to retrieve.
string|null $category: The name of the category, null for the current fieldset.
Return value
string The style value or the empty string if not set.
3 calls to AvailabilityCalendarStylesFormValidator::getStyle()
File
- ./
availability_calendar.styles.inc, line 480
Class
Code
protected function getStyle($name, $category = NULL) {
if ($category === NULL) {
$category = $this->currentFieldset;
}
return isset($this->styles[$category][$name]) ? $this->styles[$category][$name] : '';
}