You are here

public static function ThrobberManager::isApplicable in Ajax loader 7

Checks if throbber has to be loaded on current page.

1 call to ThrobberManager::isApplicable()
ajax_loader_page_build in ./ajax_loader.module
Implements hook_page_build().

File

lib/ThrobberManager.php, line 60
Class ThrobberManager

Class

ThrobberManager
@file Class ThrobberManager

Code

public static function isApplicable($settings) {
  $is_applicable = FALSE;
  $is_admin_path = path_is_admin(current_path());
  if (!$is_admin_path) {
    $is_applicable = TRUE;
  }
  elseif ($settings['show_admin_paths'] && current_path() != 'admin/config/user-interface/ajax-loader') {
    $is_applicable = TRUE;
  }
  return $is_applicable;
}