You are here

function _subscriptions_mail_module_load_include in Subscriptions 2.0.x

Same name and namespace in other branches
  1. 7 subscriptions_mail.module \_subscriptions_mail_module_load_include()

Loads include files once.

Parameters

$ext:

Return value

bool

9 calls to _subscriptions_mail_module_load_include()
subscriptions_mail_cron in subscriptions_mail/subscriptions_mail.module
Implements hook_cron().
subscriptions_mail_form_mail_edit_template_form_alter in subscriptions_mail/subscriptions_mail.module
Implements hook_form_alter().
subscriptions_mail_form_subscriptions_settings_form_alter in subscriptions_mail/subscriptions_mail.module
Implements hook_form_alter().
subscriptions_mail_mail_edit_form_extra in subscriptions_mail/subscriptions_mail.module
Implements hook_mail_edit_form_extra().
subscriptions_mail_mail_edit_text in subscriptions_mail/subscriptions_mail.module
Implements hook_mail_edit_text().

... See full list

File

subscriptions_mail/subscriptions_mail.module, line 262
Subscriptions module mail gateway.

Code

function _subscriptions_mail_module_load_include($ext) {
  static $loaded = array();
  $key = "subscriptions_mail.{$ext}";
  if (empty($loaded[$key])) {

    //dpm("subscriptions_mail.$ext loaded");
    $loaded[$key] = (bool) module_load_include($ext, 'subscriptions_mail');
  }
  return $loaded[$key];
}