function views_custom_cache_plugin_cache::get_node_bundles in Views custom cache 7
Returns the list of available node bundles.
Return value
array List of bundles.
1 call to views_custom_cache_plugin_cache::get_node_bundles()
- views_custom_cache_plugin_cache::options_form in views/
views_custom_cache_plugin_cache.inc - Implements views_plugin#options_form().
File
- views/
views_custom_cache_plugin_cache.inc, line 298 - Views custom cache first argument plugin.
Class
- views_custom_cache_plugin_cache
- Views caching given view's first argument.
Code
function get_node_bundles() {
$bundles = array();
$ctypes = node_type_get_types();
foreach ($ctypes as $key => $ct) {
$bundles[$key] = $ct->name;
}
return $bundles;
}