Skip to content

Instantly share code, notes, and snippets.

View dirtystylus's full-sized avatar

Mark Llobrera dirtystylus

View GitHub Profile
<?php
/**
* This snippet adds extra classes to Drupal
* menu leafs (li tags) and menu itself (ul tags).
*/
/**
* Since the standard preprocess function for menu tree, which is
* template_preprocess_menu_tree, located in includes/menu.inc,
name = Custom Beans
description = My Custom Beans
core = 7.x
files[] = "custom_bean.listing.inc"