function author_pane_run_preprocess in Author Pane 6.2
Same name and namespace in other branches
- 7.2 author_pane.module \author_pane_run_preprocess()
Determines if a given preprocess should run for a given caller.
8 calls to author_pane_run_preprocess()
- contact_preprocess_author_pane in modules/
contact.author-pane.inc - Implementation of hook_preprocess_author_pane().
- fasttoggle_preprocess_author_pane in modules/
fasttoggle.author-pane.inc - Implementation of hook_preprocess_author_pane().
- og_preprocess_author_pane in modules/
og.author-pane.inc - Implementation of hook_preprocess_author_pane().
- profile_preprocess_author_pane in modules/
profile.author-pane.inc - Implementation of hook_preprocess_author_pane().
- troll_preprocess_author_pane in modules/
troll.author-pane.inc - Implementation of hook_preprocess_author_pane().
File
- ./
author_pane.module, line 337 - Gathers information from user related modules into one template.
Code
function author_pane_run_preprocess($module, $caller) {
$caller_disabled_list = variable_get("author_pane_disable_for_{$caller}", NULL);
if (!is_null($caller_disabled_list) && isset($caller_disabled_list[$module])) {
// If this caller has a list of disabled modules and if this module
// is listed, then return the opposite of the value for this caller.
// (The variable is TRUE to disable and we want to return TRUE to run it)
return !$caller_disabled_list[$module];
}
return TRUE;
}