Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2011 at 01:38 UTC
Updated:
15 Dec 2011 at 21:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
ericduran commentedOh just incase anyone is wondering why I would prefer a views_hook instead of using hook_ajax_render_alter is that hook_ajax_render_alter doesn't have any context. You do not have the view object on that hook, and is also difficult to tell which of the commands in hook_ajax_render_alter is the views command.
This patch allows you to easily switch the replace command with a different command and or your own implementation.
Comment #2
merlinofchaos commentedHmm. I suppose the lack of context does make it very difficult. dereine, what do you think?
Comment #3
ericduran commentedignored! Wrong patch attached.
Comment #4
ericduran commentedSame patch as the original issue. This is just a git format-patch being that i needed this on another project and git am is just easier to work with. :)
Sorry for the noise, I didn't mean to attached the wrong patch :(
Comment #5
dawehnerYes hook_ajax_render_alter does miss important context, so commited this patch.
Comment #7
skh commentedTitle confused me for a moment before looking at the patch for the proper hook name.