function calendar_wildcard in Calendar 5.2
Substitute a calendar argument with a wildcard.
File
- ./
calendar.module, line 648 - Adds calendar filtering and displays to Views.
Code
function calendar_wildcard($arg, $value) {
if (empty($value) && substr($arg['type'], 0, 8) == 'calendar') {
$value = CALENDAR_EMPTY_ARG;
}
elseif (!empty($arg['wildcard_substitution']) && !empty($arg['wildcard']) && !empty($value) && $value == $arg['wildcard']) {
$value = $arg['wildcard_substitution'];
}
return $value;
}