function bootstrap_tour_load_all in Bootstrap Tour 7
Same name and namespace in other branches
- 7.2 bootstrap_tour.module \bootstrap_tour_load_all()
Callback function for loading all bootstrap tours in an array of 'btid' => 'name' format.
2 calls to bootstrap_tour_load_all()
- bootstrap_tour_list in ./
bootstrap_tour.module - Callback function for admin/build/tours
- bootstrap_tour_page_build in ./
bootstrap_tour.module - Implementation of hook_init(). Load all the tours and figure out if any are set to auto-run and start on the current page. If so, go ahead and run that one.
File
- ./
bootstrap_tour.module, line 505
Code
function bootstrap_tour_load_all($include_disabled = FALSE) {
ctools_include('export');
$tours = ctools_export_crud_load_all('bootstrap_tour');
if (!$include_disabled) {
$tours = array_filter($tours, 'bootstrap_tour_is_enabled');
}
return $tours;
}