You are here

function ad_get_cached_view in Advertisement 7.3

Return a view, eventually from the cache.

Note that the view will be turned into an array, as its object properties. This function is safe to call from a bootstrap phase lower than full, and will throw a AdCacheNotFoundException eventually.

Parameters

$view_name: The name of the view to be retrieved.

Return value

array The view, turned into an array.

1 call to ad_get_cached_view()
ad_get_view_view_mode in ./ad.module
Get the node view mode used in the ad view.

File

./ad.module, line 355
Core code for the ad module.

Code

function ad_get_cached_view($view_name) {
  return ad_get_cache('views_get_view', $view_name);
}