function _mail_edit_module_load_include in Mail Editor 7
Loads include files once.
Parameters
$name_or_ext:
$ext:
Return value
bool
7 calls to _mail_edit_module_load_include()
- mail_edit_format in ./
mail_edit.module - Formats a text using the supplied template, data, and options.
- mail_edit_load in ./
mail_edit.module - Loads and returns a template.
- mail_edit_mail_alter in ./
mail_edit.module - Implements hook_mail_alter().
- mail_edit_modules_uninstalled in ./
mail_edit.module - Implements hook_modules_uninstalled().
- mail_edit_template_form in ./
mail_edit.admin.inc - Form builder function to prepare the template edit form.
File
- ./
mail_edit.module, line 203 - Mail Editor module.
Code
function _mail_edit_module_load_include($name_or_ext, $ext = NULL) {
static $loaded = array();
if (empty($ext)) {
$ext = $name_or_ext;
$name_or_ext = 'mail_edit';
}
$key = "{$name_or_ext}.{$ext}";
if (empty($loaded[$key])) {
$loaded[$key] = (bool) module_load_include($ext, 'mail_edit', $name_or_ext);
}
return $loaded[$key];
}