function webform_link in Webform 6.3
Same name and namespace in other branches
- 5.2 webform.module \webform_link()
- 5 webform.module \webform_link()
- 6.2 webform.module \webform_link()
Implements hook_link(). Always add a "view form" link.
File
- ./
webform.module, line 1262
Code
function webform_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if (isset($node->type) && $node->type === 'webform') {
if ($teaser && !$node->webform['teaser']) {
$links['webform_goto'] = array(
'title' => t('Go to form'),
'href' => 'node/' . $node->nid,
'attributes' => array(
'title' => t('View this form.'),
'class' => 'read-more',
),
);
}
}
return $links;
}