| 342 |
$output = $output_answers = ''; |
$output = $output_answers = ''; |
| 343 |
drupal_add_css(drupal_get_path('module', 'faq') .'/faq.css'); |
drupal_add_css(drupal_get_path('module', 'faq') .'/faq.css'); |
| 344 |
if (arg(0) == 'faq') { |
if (arg(0) == 'faq') { |
| 345 |
drupal_set_title(variable_get('faq_title', 'Frequently Asked Questions')); |
drupal_set_title(check_plain(variable_get('faq_title', 'Frequently Asked Questions'))); |
| 346 |
} |
} |
| 347 |
if (!module_exists("taxonomy")) { |
if (!module_exists("taxonomy")) { |
| 348 |
$tid = 0; |
$tid = 0; |
| 432 |
if (!empty($tid) && $term = taxonomy_get_term($tid)) { |
if (!empty($tid) && $term = taxonomy_get_term($tid)) { |
| 433 |
$title = variable_get('faq_title', 'Frequently Asked Questions'); |
$title = variable_get('faq_title', 'Frequently Asked Questions'); |
| 434 |
if (arg(0) == 'faq' && is_numeric(arg(1))) { |
if (arg(0) == 'faq' && is_numeric(arg(1))) { |
| 435 |
drupal_set_title($title . ($title ? ' - ' : '') . check_plain($term->name)); |
drupal_set_title(check_plain($title . ($title ? ' - ' : '') . $term->name)); |
| 436 |
} |
} |
| 437 |
if ($category_display == 'hide_qa') { |
if ($category_display == 'hide_qa') { |
| 438 |
drupal_add_js(drupal_get_path('module', 'faq') .'/faq.js', 'module'); |
drupal_add_js(drupal_get_path('module', 'faq') .'/faq.js', 'module'); |