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

r_honey’s picture

Anyone can give me a hint what am I doing wrong??

DizzyC’s picture