You are here

function elfinder_browser_css in elFinder file manager 7

Same name and namespace in other branches
  1. 7.3 elfinder.module \elfinder_browser_css()
  2. 7.2 elfinder.module \elfinder_browser_css()

Removing unwanted css

1 call to elfinder_browser_css()
elfinder-page.tpl.php in tpl/elfinder-page.tpl.php
elFinder file browser page template Copyright (c) 2010, Alexey Sukhotin

File

./elfinder.module, line 760

Code

function elfinder_browser_css() {
  $css = drupal_add_css();
  $rms = array();
  if (module_exists('admin_menu')) {
    $apath = drupal_get_path('module', 'admin_menu');
    $atpath = drupal_get_path('module', 'admin_menu_toolbar');
    $rms[] = isset($apath) ? $apath : '';
    $rms[] = isset($atpath) ? $atpath : '';
    foreach (array_keys($css) as $k) {
      foreach ($rms as $rm) {
        if (preg_match('|' . $rm . '|', $k) && $rm != '') {
          unset($css[$k]);
        }
      }
    }
  }
  return drupal_get_css($css);
}