You are here

ajax_loader.api.php in Ajax loader 7

Contains examples of hooks and api functions.

File

ajax_loader.api.php
View source
<?php

/**
 * @file
 * Contains examples of hooks and api functions.
 */

/**
 * This hook allows you to add extra throbbers.
 *
 * @return 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".
 */
function hook_ajax_loader() {
  $throbbers['new_throbber'] = array(
    'class' => 'MyNewThrobber',
  );
  $throbbers['another_throbber'] = array(
    'class' => 'AnotherThrobber',
  );
  return $throbbers;
}

Functions

Namesort descending Description
hook_ajax_loader This hook allows you to add extra throbbers.