function hook_ajax_loader in Ajax loader 7
This hook allows you to add extra throbbers.
Return value
array An array of throbbers. Each throbber must contain the key "class" which refers to the class name of the throbber. Make sure your class implements "ThrobberInterface" or extends "ThrobberBase".
File
- ./
ajax_loader.api.php, line 16 - Contains examples of hooks and api functions.
Code
function hook_ajax_loader() {
$throbbers['new_throbber'] = array(
'class' => 'MyNewThrobber',
);
$throbbers['another_throbber'] = array(
'class' => 'AnotherThrobber',
);
return $throbbers;
}