I have this code.
if ($_GET['q'] == 'entity/bundle'){
unset($css[drupal_get_path('module', 'system') . '/system.base.css']);
}
Which I use in template.php to unset css on certain pages, but I want to have code (in this case unset css) to run on all entity pages for example entity/bundle/1, entity/bundle/2, entity/bundle/3. How can I get this to apply to all entity pages. I need something like entity/bundle/% or entity/bundle/* or maybe there is another way.
hook_preprocess_entity
. This will allow you to act on all entities and use the machine name, title etc of the entities. – sareed May 16 '17 at 15:54