function _subscriptions_module_load_include in Subscriptions 7
Same name and namespace in other branches
- 2.0.x subscriptions.module.old.php \_subscriptions_module_load_include()
Loads include files once.
Parameters
string $module:
string $ext:
Return value
bool
11 calls to _subscriptions_module_load_include()
- subscriptions_content_form_subscriptions_settings_form_alter in ./
subscriptions_content.module - Implements hook_form_alter().
- subscriptions_content_load_comment in ./
subscriptions_content.module - Callback function for loading comments.
- subscriptions_content_load_node in ./
subscriptions_content.module - Callback function for loading a node.
- subscriptions_content_page_node in ./
subscriptions_content.module - Subscriptions page callback: Lists thread subscriptions.
- subscriptions_content_page_type in ./
subscriptions_content.module - Subscriptions page callback: Lists content types subscriptions.
File
- ./
subscriptions.module, line 1009 - Subscriptions module.
Code
function _subscriptions_module_load_include($module, $ext) {
static $loaded = array();
$key = "{$module}.{$ext}";
if (empty($loaded[$key])) {
$loaded[$key] = (bool) module_load_include($ext, $module);
}
return $loaded[$key];
}