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.

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new1.51 KB
dave reid’s picture

Assigned: Unassigned » dave reid
dave reid’s picture

Issue tags: +Metatags

Tagging as this affects the Metatags module.

dawehner’s picture

Status: Needs review » Fixed

Good point, this things should be really resetted. Commited to 7.x-3.x

Automatically closed -- issue fixed for 2 weeks with no activity.