You are here

function pay_init in Pay 7

Same name and namespace in other branches
  1. 6 pay.module \pay_init()

Implements hook_init().

File

./pay.module, line 11
Pay module allows for accepting payments using pluggable payment backends.

Code

function pay_init() {
  $path = drupal_get_path('module', 'pay');
  if (module_exists('trigger')) {
    module_load_include('inc', 'pay', 'includes/pay.trigger');
  }
  if (module_exists('token')) {
    module_load_include('inc', 'pay', 'includes/pay.token');
  }
  module_load_include('inc', 'pay', 'includes/pay.action');
}