Closed (duplicate)
Project:
Webform
Version:
7.x-3.18
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2013 at 20:05 UTC
Updated:
18 Jun 2013 at 04:41 UTC
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;
}
Comments
Comment #1
quicksketchYeah 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.