I'm using hook_views_preview_info_alter() to add in some data about a view and discovered that I can't actually use $view->get_title() nor $view->get_url() as the preview code in includes/admin.inc overrides these. We should reset these back after running $view->preview() so that other code can call those functions. This is a quasi-blocker for #1278550: Add basic view tokens as performing token_replace() with a view object in preview fails the [view:title] and [view:url] tokens.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1278566-views-preview-reset-variables.patch | 1.51 KB | dave reid |
Comments
Comment #1
dave reidComment #2
dave reidComment #3
dave reidTagging as this affects the Metatags module.
Comment #4
dawehnerGood point, this things should be really resetted. Commited to 7.x-3.x