You are here

function linkit_init in Linkit 6

Implementation of hook_init().

File

./linkit.module, line 54
Main file for linkit module.

Code

function linkit_init() {

  // Check that we have pathfilter or pathologic installed to parse the "internal:" links
  if (!module_exists('pathfilter') && !module_exists('pathologic')) {
    if (user_access('administer site configuration') || user_access('administer linkit')) {
      drupal_set_message(t('The Linkit module requires <a href="@pathfilter">pathfilter</a> <strong>OR</strong> <a href="@pathologic">pathologic</a> to parse "internal:" links. Be sure you have <strong>ONE</strong> of this modules installed.', array(
        '@pathfilter' => 'http://drupal.org/project/pathfilter',
        '@pathologic' => 'http://drupal.org/project/pathologic',
      )), 'warning');
    }
  }
}