You are here

function faq_ask_install in FAQ_Ask 6

Same name and namespace in other branches
  1. 6.2 faq_ask.install \faq_ask_install()
  2. 7 faq_ask.install \faq_ask_install()

Implementation of hook_install().

File

./faq_ask.install, line 40
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_install() {
  $result = drupal_install_schema('faq_ask');
  if (count($result) > 0) {
    drupal_set_message(t('faq_ask module installed.'));
  }
  else {
    drupal_set_message(t('faq_ask table creation failed. Please "uninstall" the module and retry.'));
  }
}