You are here

function theme_faq_new_page in Frequently Asked Questions 5.2

Create the code of the FAQ page if set to show the answer in a new page.

Parameters

$nodes: Array of node objects to display.

Return value

A variable holding the HTML formatted page.

1 theme call to theme_faq_new_page()
faq_page in ./faq.module
Function to display the faq page.

File

includes/faq.new_page.inc, line 16
FAQ page callbacks for the "new page" layouts.

Code

function theme_faq_new_page($nodes) {

  // Fetch configuration.
  $teaser = variable_get('faq_use_teaser', FALSE);
  $links = variable_get('faq_show_node_links', FALSE);
  $items = array();
  foreach ($nodes as $node) {
    $items[] = l($node->question, "node/{$node->nid}");
  }
  $list_style = variable_get('faq_question_listing', 'ul');
  $output .= theme('item_list', $items, NULL, $list_style, array(
    "class" => "faq-question-listing",
  ));
  return $output;
}