You are here

function theme_faqfield_formatter in FAQ Field 7

Returns HTML for a faqfield formatter.

Parameters

array $variables: An associative array containing:

  • question: Prefiltered question value by check_plain.
  • answer: Prefiltered answer value by field setting format.
  • delta: Delta of field element.
1 theme call to theme_faqfield_formatter()
faqfield_field_formatter_view in ./faqfield.module
Implements hook_field_formatter_view().

File

./faqfield.module, line 20
FAQ Field Provides a field for frequently asked questions.

Code

function theme_faqfield_formatter($variables) {
  $output = '<h3 class="faqfield-question">' . $variables['question'] . '</h3>';
  $output .= '<div class="faqfield-answer">' . $variables['answer'] . '</div>';
  return $output;
}