You are here

function superfish_enable in Superfish 7

Same name and namespace in other branches
  1. 6 superfish.install \superfish_enable()

Implements hook_enable().

File

./superfish.install, line 20
Install, update and uninstall functions for the Superfish module.

Code

function superfish_enable() {
  if (superfish_library_check()) {
    drupal_set_message(t('In order to use Superfish, go to the <a href="@block">Blocks</a> page and enable a Superfish block.', array(
      '@block' => 'structure/block',
    )));
  }
  else {
    drupal_set_message(t('Superfish library is missing. Please refer to the <a href="@documentation">plugin documentation</a> for how you can fix this issue; Once done, go to the <a href="@block">Blocks</a> page and enable a Superfish block.', array(
      '@documentation' => 'http://drupal.org/node/1125896',
      '@block' => 'structure/block',
    )), 'warning');
  }
}