When I promote Webforms to my front page, I expected to see the "Go to form" link. However, I only see the "read more" link. There's a function in webform 3.18 in webform.module on line 1376 called function webform_link. That looks like the code that renders the Go to form link in a teaser but it does not appear for me. I tired default Bartik theme as well as a clean Drupal install and webform with the same results each time, no Go to form link in teasers. I did not see any specific setting for this so I am not sure what is happening here or how to debug this.

Here's the full function:

 * Implements hook_link().
 * Always add a "view form" link.
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' => array('read-more'))
  return $links;


quicksketch’s picture

Status: Active » Closed (duplicate)

Yeah I think hook_link (or what it used to be used for) is on the way out. See #1869222: Remove hook_link() implementation; doesn't exist any more in D7.