30 lines
687 B
Plaintext
30 lines
687 B
Plaintext
<?php
|
|
/**
|
|
* @file
|
|
* Code for the Farm Tour feature.
|
|
*/
|
|
|
|
include_once 'farm_tour.features.inc';
|
|
|
|
/**
|
|
* Implements hook_farm_help_page().
|
|
*/
|
|
function farm_tour_farm_help_page() {
|
|
|
|
// Add links to the available tours.
|
|
$output = '<h3>Guided Tours</h3>';
|
|
$tour_list = array();
|
|
$tours = farm_tour_default_bootstrap_tour();
|
|
foreach ($tours as $name => $tour) {
|
|
if (bootstrap_tour_access($tour)) {
|
|
$tour_list[] = l($tour->title, $tour->start_path, array('query' => array('tour' => $name)));
|
|
}
|
|
}
|
|
if (!empty($tour_list)) {
|
|
$output .= theme('item_list', array('items' => $tour_list));
|
|
}
|
|
|
|
// Return the output wrapped in an array.
|
|
return array($output);
|
|
}
|