Using hook_system_info_alter()

Public

So this is how you use this hook. This particular function stops the node.css stylesheet from being passed from the node module .info file to Drupal.

</> CopyGet raw version
php
  1. function hook_system_info_alter(&$info, $file, $type) {
  2. if($type == 'module' && $file->name == 'node') {
  3. unset($info['stylesheets'][all]['node.css']);
  4. }
  5. }