Переопределение Local Task

Задача - необходимо переопределить свойства ссылок выведенные в табах

  1. function MYTHEME_menu_local_tasks_alter(&$data, $router_item, $root_path) {
  2. $tab1 = &$data['tabs'][0]['output'][1];
  3. $tab1['#link']['localized_options']['attributes']['class'][] = 'tab1';
  4. }
  5. }
Russian
Категория: 
The code has been tested and works
Мультитег: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Target Image