You are here

function faq_theme in Frequently Asked Questions 7

Same name and namespace in other branches
  1. 8 faq.module \faq_theme()
  2. 6 faq.module \faq_theme()
  3. 7.2 faq.module \faq_theme()

Implements hook_theme().

File

./faq.module, line 811
The FAQ module allows users to create a FAQ page, with questions and answers displayed in different styles, according to the settings.

Code

function faq_theme() {
  $path = drupal_get_path('module', 'faq') . '/includes';
  return array(
    'field_detailed_question' => array(
      'render element' => 'element',
    ),
    'faq_draggable_question_order_table' => array(
      'render element' => 'form',
    ),
    'faq_questions_top' => array(
      'path' => $path,
      'file' => 'faq.questions_top.inc',
      'template' => 'faq-questions-top',
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'faq_category_questions_top' => array(
      'path' => $path,
      'file' => 'faq.questions_top.inc',
      'template' => 'faq-category-questions-top',
      'variables' => array(
        'data' => NULL,
        'display_header' => 0,
        'category_display' => NULL,
        'term' => NULL,
        'class' => NULL,
        'parent_term' => NULL,
      ),
    ),
    'faq_category_questions_top_answers' => array(
      'path' => $path,
      'file' => 'faq.questions_top.inc',
      'template' => 'faq-category-questions-top-answers',
      'variables' => array(
        'data' => NULL,
        'display_header' => 0,
        'category_display' => NULL,
        'term' => NULL,
        'class' => NULL,
        'parent_term' => NULL,
      ),
    ),
    'faq_hide_answer' => array(
      'path' => $path,
      'file' => 'faq.hide_answer.inc',
      'template' => 'faq-hide-answer',
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'faq_category_hide_answer' => array(
      'path' => $path,
      'file' => 'faq.hide_answer.inc',
      'template' => 'faq-category-hide-answer',
      'variables' => array(
        'data' => NULL,
        'display_header' => 0,
        'category_display' => NULL,
        'term' => NULL,
        'class' => NULL,
        'parent_term' => NULL,
      ),
    ),
    'faq_questions_inline' => array(
      'path' => $path,
      'file' => 'faq.questions_inline.inc',
      'template' => 'faq-questions-inline',
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'faq_category_questions_inline' => array(
      'path' => $path,
      'file' => 'faq.questions_inline.inc',
      'template' => 'faq-category-questions-inline',
      'variables' => array(
        'data' => NULL,
        'display_header' => 0,
        'category_display' => NULL,
        'term' => NULL,
        'class' => NULL,
        'parent_term' => NULL,
      ),
    ),
    'faq_new_page' => array(
      'path' => $path,
      'file' => 'faq.new_page.inc',
      'template' => 'faq-new-page',
      'variables' => array(
        'data' => NULL,
      ),
    ),
    'faq_category_new_page' => array(
      'path' => $path,
      'file' => 'faq.new_page.inc',
      'template' => 'faq-category-new-page',
      'variables' => array(
        'data' => NULL,
        'display_header' => 0,
        'category_display' => NULL,
        'term' => NULL,
        'class' => NULL,
        'parent_term' => NULL,
      ),
    ),
    'faq_page' => array(
      'variables' => array(
        'content' => '',
        'answers' => '',
        'description' => NULL,
      ),
    ),
  );
}