You are here

function _site_map_faq in Site map 7

Same name and namespace in other branches
  1. 8 site_map.module \_site_map_faq()
  2. 5 site_map.module \_site_map_faq()
  3. 6.2 site_map.module \_site_map_faq()
  4. 6 site_map.module \_site_map_faq()

Render the latest maps for faq.

Return value

string Returns HTML string of site map for faq.

1 call to _site_map_faq()
template_preprocess_site_map in includes/site_map.theme.inc
Preprocesses the variables for site-map.tpl.php.

File

./site_map.module, line 539
site_map.module

Code

function _site_map_faq() {
  $output = '';
  $options = array();
  if (module_exists('faq')) {
    $title = variable_get('faq_title', t('Frequently Asked Questions'));
    $attributes = array(
      'class' => array(
        'site-map-box-faq',
      ),
    );
    $output = faq_get_faq_list();
    _site_map_set_option($options, 'site_map_show_titles', 1, 1, 'show_titles', TRUE);
    $output = theme('site_map_box', array(
      'title' => $title,
      'content' => $output,
      'attributes' => $attributes,
      'options' => $options,
    ));
  }
  return $output;
}