You are here

function messaging_include in Messaging 6.4

Same name and namespace in other branches
  1. 7 messaging.module \messaging_include()

Include module files as necessary.

The files must be in an 'includes' subfolder inside the module folder.

5 calls to messaging_include()
messaging_admin_method_filters in ./messaging.admin.inc
Settings for filter and formatting for each sending method
messaging_messaging in ./messaging.module
Implementation of hook_messaging()
Messaging_Method::default_render in includes/messaging_method.class.inc
Renders full message with header and body
messaging_template_text_replace in messaging_template/messaging_template.module
Do token replacement.
messaging_update_6008 in ./messaging.install
Update method filter settings

File

./messaging.module, line 1191

Code

function messaging_include($file, $module = 'messaging') {
  static $included = array();
  if (!isset($included[$module][$file])) {
    require_once './' . drupal_get_path('module', $module) . '/includes/' . $file;
    $included[$module][$file] = TRUE;
  }
}