You are here

function nodequeue_init in Nodequeue 5.2

Same name and namespace in other branches
  1. 7.3 nodequeue.module \nodequeue_init()
  2. 7.2 nodequeue.module \nodequeue_init()

Implementation of hook_init().

Loads subsidiary includes for other modules.

File

./nodequeue.module, line 18

Code

function nodequeue_init() {
  if (module_exists('actions')) {
    include_once drupal_get_path('module', 'nodequeue') . '/nodequeue.actions.inc';
  }
  if (module_exists('workflow_ng')) {
    if (module_exists('actions')) {

      // Workflow_ng and actions module can't work together becuase of API collision.
      drupal_set_message(t('Nodequeue\'s integration with workflow_ng module couldn\'t initialize as the Actions module is enabled. Actions module and workflow_ng can\'t be enabled at the same time.'));
    }
    else {
      include_once drupal_get_path('module', 'nodequeue') . '/nodequeue.workflow_ng.inc';
    }
  }
  if (module_exists('views')) {
    include_once drupal_get_path('module', 'nodequeue') . '/nodequeue.views.inc';
  }
}