You are here

function boost_views_get_valid_array in Boost 6

Genrate a list of valid views that boost will search for new content.

Return value

array

2 calls to boost_views_get_valid_array()
boost_views_pre_render in ./boost.module
Implementation of hook_views_pre_render().
_boost_views_runit in ./boost.module

File

./boost.module, line 401
Provides static file caching for Drupal text output. Pages, Feeds, ect...

Code

function boost_views_get_valid_array() {
  $list = boost_views_get_valid_list();
  $views = array();
  foreach ($list as $hash => $enabled) {
    if ($enabled) {
      $info = explode(' - ', $hash);
      $page_type = $info[0];
      $page_id = $info[1];
      $key = $page_type . ' - ' . $page_id;
      $views[$key]['page_type'] = $page_type;
      $views[$key]['page_id'] = $page_id;
    }
  }
  return $views;
}