By r_honey on
I am trying to add a custom class for links generated for my menu items. An example is as follows:
$items['node/%/blog'] = array(
'title' => 'Blog',
'description' => 'Blog for this event.',
'type' => MENU_LOCAL_TASK,
'page callback' => 'eventbook_custom_theme',
'access arguments' => array('access content'),
'options' => array('attributes'=>array('class'=>array('event-blog-link'))));
However, the "options" have no effect, and the class does not get added to the rendered link. I have studied all the docs, and am doing it in the specified way.
Am I doing something wrong??
Comments
Anyone can give me a hint
Anyone can give me a hint what am I doing wrong??
Bug
Seems to be a bug: http://drupal.org/node/1043906#comment-4364848