Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am currently using add_item() in hook_views_pre_render() to programmatically generate a link and add it as a footer to the view:
$view->add_item('default', 'footer', 'views', 'area', array('content' => $link, 'format' => 'filtered_html'));
This code successfully adds the footer but in doing so seems to break replacement patterns that are being used elsewhere in the view. The values that are otherwise generated disappear. Commenting out the add_item() line causes them to reappear.
Comments
Comment #1
markdorison