Beispiel #1
0
 function parse($args, $page)
 {
     preg_match('/([-A-Za-z0-9]*)/', $args, $result);
     if ($result[1] != '') {
         return html_anchor($result[1]);
     } else {
         return '';
     }
 }
Beispiel #2
0
function view_macro_anchor($args)
{
    preg_match('/([-A-Za-z0-9]*)/', $args, $result);
    if ($result[1] != '') {
        return html_anchor($result[1]);
    } else {
        return '';
    }
}