You are here

function autofloat_init in AutoFloat 6.2

Same name and namespace in other branches
  1. 6 autofloat.module \autofloat_init()
  2. 7 autofloat.module \autofloat_init()

Implements hook_init().

File

./autofloat.module, line 21
Autofloat module: A filter that floats images left and right automatically.

Code

function autofloat_init() {

  // Determine the setting to use autofloat.css or not.
  if (variable_get('autofloat_css', 1)) {
    drupal_add_css(drupal_get_path('module', 'autofloat') . '/autofloat.css', $type = 'module', $media = 'all', $preprocess = TRUE);
  }
}