You are here

function faq_ask_block_configure in FAQ_Ask 7

Implements hook_block_configure().

File

./faq_ask.module, line 1961
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_block_configure($delta = '') {
  $form = array();
  switch ($delta) {
    case 'unanswered':

      // Unanswered Questions.
      $form['faq_unanswered_count'] = array(
        '#type' => 'select',
        '#title' => t('Number of questions to show'),
        '#description' => t("This controls the number of questions that appear in the 'Unanswered Questions' block."),
        '#options' => array(
          1 => 1,
          2 => 2,
          3 => 3,
          4 => 4,
          5 => 5,
          6 => 6,
          7 => 7,
          8 => 8,
          9 => 9,
          10 => 10,
          15 => 15,
          20 => 20,
          25 => 25,
          50 => 50,
          100 => 100,
        ),
        '#default_value' => variable_get('faq_unanswered_count', 3),
      );
  }

  // end switch($delta)
  return $form;
}