finder_arg_optional_to_arg
- finder
| Versions | |
|---|---|
| 7.x-1.x | finder_arg_optional_to_arg($arg) |
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.
Code
./
<?php
function finder_arg_optional_to_arg($arg) {
return (empty($arg)) ? '' : $arg;
}
?>
