function faq_ask_page in FAQ_Ask 6.2
Same name and namespace in other branches
- 6 faq_ask.module \faq_ask_page()
- 7 faq_ask.module \faq_ask_page()
Get the ask question form.
1 string reference to 'faq_ask_page'
- faq_ask_menu in ./
faq_ask.module - Implementation of hook_menu().
File
- ./
faq_ask.module, line 135 - This module is an add-on to the FAQ module that allows users with the 'ask question' permission to create a question which will be queued for an 'expert' to answer.
Code
function faq_ask_page($tid = NULL) {
// Issue #957414 by wvanbusk: Can shortcut select category?
// In case of a term added, modify query string to add it.
if ($tid && is_numeric($tid)) {
$term_object = taxonomy_get_term($tid);
if (is_object($term_object)) {
drupal_goto('node/add/faq', array(
'ask' => TRUE,
'term' => $term_object->tid,
));
}
}
// Jump to question form
drupal_goto('node/add/faq', array(
'ask' => TRUE,
));
}