You are here

function boost_views_get_valid_list in Boost 6

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

Return value

array

3 calls to boost_views_get_valid_list()
boost_admin_boost_performance_page in ./boost.admin.inc
Form builder; Displays Boost's configuration page.
boost_expire_node in ./boost.module
Expires a node from the cache; including related pages.
boost_views_get_valid_array in ./boost.module
Genrate a list of valid views that boost will search for new content.

File

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

Code

function boost_views_get_valid_list($fresh = FALSE) {

  // Load saved default values; if not saved, save it.
  $defaults = variable_get('boost_views_list_default', FALSE);
  if (!$defaults || $fresh) {
    $defaults = boost_views_generate_default_list();
    variable_set('boost_views_list_default', $defaults);
  }

  // Load custom settings
  $list = variable_get('boost_views_list_custom', array());

  // Load defaults. http://php.net/operators.array
  $list += $defaults;
  return $list;
}