Seems like this worked:
$codes[] = array(
'tag' => 'button',
'parameters' => array(
'active' => array('validate' => create_function('&$code', '
if (strtolower($code) == \'true\')
$code = \'active \';
else
$code = \'\';
return $code;'), 'optional' => true),
'url' => array('validate' => create_function('&$code', '
$code = strtr($code, array(\'<br />\' => \'\'));
if (strpos($code, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$code = \'http://\' . $code;
return $code;
')),
),
'before' => '<li><a href="{url}" class="{active}firstlevel"><span class="firstlevel">',
'after' => '</span></a></li>',
'trim' => 'outside',
'require_parents' => array('menu'),
);
Thanks to Ricky and emanuele.
Dunno if that's 100% right, though.