You are here

function author_pane_run_preprocess in Author Pane 7.2

Same name and namespace in other branches
  1. 6.2 author_pane.module \author_pane_run_preprocess()

Determines if a given preprocess should run for a given caller.

6 calls to author_pane_run_preprocess()
contact_preprocess_author_pane in modules/contact.author-pane.inc
Implements hook_preprocess_author_pane().
fasttoggle_preprocess_author_pane in modules/fasttoggle.author-pane.inc
Implements hook_preprocess_author_pane().
og_preprocess_author_pane in modules/og.author-pane.inc
Implements hook_preprocess_author_pane().
userpoints_preprocess_author_pane in modules/userpoints.author-pane.inc
Implements hook_preprocess_author_pane().
user_badges_preprocess_author_pane in modules/user_badges.author-pane.inc
Implements hook_preprocess_author_pane().

... See full list

File

./author_pane.module, line 378
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;
}