You are here

function styles_init in Styles 6

Same name and namespace in other branches
  1. 6.2 styles.module \styles_init()
  2. 7.2 styles.module \styles_init()

Implementation of hook_init().

File

./styles.module, line 278
Bundles similar display formatters together.

Code

function styles_init() {

  // Load all registered class definitions.
  styles_get_registered_classes();

  // Ensure the proper files are loaded when a new Styles object is initiated.
  spl_autoload_register('styles_autoload');
}