function bootstrap_tour_load in Bootstrap Tour 7.2
Same name and namespace in other branches
- 7 bootstrap_tour.module \bootstrap_tour_load()
Callback function to{bo load a complete bootstrap tour, including all steps, by id.
1 call to bootstrap_tour_load()
- bootstrap_tour_run_tour in ./
bootstrap_tour.module - Helper function to actually run a tour. Can be called from anywhere.
File
- ./
bootstrap_tour.module, line 355 - bootstrap_tour.module
Code
function bootstrap_tour_load($id) {
$tour = entity_load('bootstrap_tour', array(
$id,
), array(), FALSE);
$tour = reset($tour);
$wrapper = entity_metadata_wrapper('bootstrap_tour', $tour);
$tour->steps = $wrapper->bootstrap_tour_step_reference
->value();
return $tour;
}