public static function ThrobberManager::processUserDefinedThrobbers in Ajax loader 7
Returns all valid throbbers definied by other modules through hook_ajax_throbber().
Parameters
array $throbbers:
Return value
array
2 calls to ThrobberManager::processUserDefinedThrobbers()
- AjaxLoaderTestCase::testManager in ./
ajax_loader.test - Test manager.
- _ajax_loader_get_options in includes/
settings.ajax_loader.inc - Returns all throbbers as option array.
File
- lib/
ThrobberManager.php, line 15 - Class ThrobberManager
Class
- ThrobberManager
- @file Class ThrobberManager
Code
public static function processUserDefinedThrobbers($throbbers = array()) {
if (!$throbbers) {
$throbbers = module_invoke_all('ajax_throbber');
}
$valid_throbbers = array();
foreach ($throbbers as $options) {
if (isset($options['class'])) {
// Validate the throbber.
if ($valid_throbber = self::isValidThrobber($options['class'])) {
array_push($valid_throbbers, $valid_throbber);
}
}
}
return $valid_throbbers;
}