You are here

function _faq_ask_advice_default in FAQ_Ask 6

Same name and namespace in other branches
  1. 6.2 faq_ask.module \_faq_ask_advice_default()
  2. 7 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
Implementation of hook_form(). This form allows the users to select the expert roles and to which categories the users in those roles are assigned. Note, the expert/category table attempts to use the least horizontal space, so it can "flip"…
_faq_ask_list_unanswered in ./faq_ask.module
This is the code to select the Unanswered Questions for the block. It is also used by the "more" page by setting a very high limit.

File

./faq_ask.module, line 992
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.');
  }
}