You are here

function _faq_ask_advice_default in FAQ_Ask 7

Same name and namespace in other branches
  1. 6.2 faq_ask.module \_faq_ask_advice_default()
  2. 6 faq_ask.module \_faq_ask_advice_default()

Special function to get the advice text default.

3 calls to _faq_ask_advice_default()
faq_ask_help in ./faq_ask.module
Display help and module information
faq_ask_settings_form in ./faq_ask.module
Implements hook_form().
template_preprocess_faq_ask_unanswered_block in ./faq_ask.unanswered.inc
Create list of unanswered questions for display in block

File

./faq_ask.module, line 1924
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_advice_default($type = 'expert') {
  switch ($type) {
    case 'expert':
      return t('If you select a question, you must answer it.');
    case 'admin':
      return t('You are allowed to edit unanswered questions.');
    case 'asker':
      return t('You may edit your own questions until they are answered.');
  }
}