Closed (fixed)
Project:
Views Load More
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
17 Sep 2012 at 22:30 UTC
Updated:
22 May 2015 at 21:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
wjaspers commentedA D7 patch.
Comment #2
wjaspers commentedD7 patch.
Untested, but similar code has worked just fine for other custom pagers.
Comment #3
wjaspers commentedLooking at D6 information, this patch looks like it can be safely backported as well.
Comment #4
wjaspers commentedTested this patch against D6 as well.
Unfortunately, drupal_alter doesn't handle references very well, so this solution doesn't really work. The code runs, but will never add our dependency as expected.
Comment #5
brettbirschbach commentedFor anyone trying to use this patch - need to change views_load_more_pager_features_pipe_views_view_alter() to views_load_more_features_pipe_views_view_alter() for the hook to be picked up.
Comment #6
m4oliveiAssigning to myself for review.
Comment #7
m4oliveiHere's a revised patch. I corrected the hook name, moved the hook into the module file, so it's always picked up, and took out the check for existing views_load_more dependency. We don't save much and returning at that point, missed jQuery Waypoints if it's needed.
Comment #8
m4oliveiCommitted to 7.x-1.x. Thanks!