Created
August 9, 2010 18:16
-
-
Save crittermike/515841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implementation of hook_translated_menu_link_alter() | |
*/ | |
function MODULENAME_menu_translated_menu_link_alter(&$item, $map) { | |
$num_unapproved = db_result(db_query("SELECT count(*) FROM {node} WHERE status = '0' AND type = 'NODETYPE'")); | |
if ($num_unapproved > 0 && $item['mlid'] == '2101') { | |
$item['localized_options']['attributes']['class'] = 'attention'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment