function theme_pay_form_link in Pay 7
Same name and namespace in other branches
- 6 theme/pay.theme.inc \theme_pay_form_link()
Theme function for links to payment forms.
File
- theme/
pay.theme.inc, line 75 - Theme hooks and callbacks for the Payment API.
Code
function theme_pay_form_link($variables) {
$pay_form = $variables['pay_form'];
$text = $variables['text'];
if ($path = $pay_form
->menu_path()) {
$link = array(
'title' => $text,
'href' => $path,
);
return l($link['title'], $link['href'], $link);
}
}