function finder_arg_optional_to_arg in Finder 7
A to_arg() function is used to provide a default for the arg in the menu wildcard.
Parameters
$arg: The arg (URL fragment) to be tested.
File
- ./
finder.module, line 126 - The finder module.
Code
function finder_arg_optional_to_arg($arg) {
return empty($arg) ? '' : $arg;
}