You are here

function autofloat_init in AutoFloat 7

Same name and namespace in other branches
  1. 6.2 autofloat.module \autofloat_init()
  2. 6 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', array(
      'group' => CSS_DEFAULT,
      'every_page' => TRUE,
    ));
  }
}