You are here

function views_fluid_grid_init in Views Fluid Grid 7.3

Same name and namespace in other branches
  1. 6 views_fluid_grid.module \views_fluid_grid_init()

Implementation of hook_init().

File

./views_fluid_grid.module, line 21
Exposes a views style plugin to render items on a fluid grid.

Code

function views_fluid_grid_init() {

  // Views live preview does not load additional stylesheets because it
  // does not use Ajax Load module properly here.
  // So, let's make sure our stylesheets are loaded in Views UI.
  if (strpos($_GET['q'], 'admin/build/views/edit/') === 0) {
    $module_path = drupal_get_path('module', 'views_fluid_grid');
    drupal_add_css($module_path . '/css/views_fluid_grid.base.css');
    drupal_add_css($module_path . '/css/views_fluid_grid.size.css');
    drupal_add_css($module_path . '/css/views_fluid_grid.advanced.css');
  }
}