menu_secondary_local_tasks

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/menu.inc, строка 773

Версии
5 – 6
menu_secondary_local_tasks()

Возращает оформление HTML вторичных локальных задач.

Связанные темы

▾ 2 функции вызывают menu_secondary_local_tasks()

theme_menu_local_tasks in includes/menu.inc
Returns the rendered local tasks. The default implementation renders them as tabs.
_phptemplate_variables in themes/garland/template.php
Override or insert PHPTemplate variables into the templates.

Код

<?php
function menu_secondary_local_tasks() {
  $local_tasks = menu_get_local_tasks();
  $pid = menu_get_active_nontask_item();
  $output = '';

  if (count($local_tasks[$pid]['children'])) {
    foreach ($local_tasks[$pid]['children'] as $mid) {
      if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) {
        foreach ($local_tasks[$mid]['children'] as $cid) {
          $output .= theme('menu_local_task', $cid, menu_in_active_trail($cid), FALSE);
        }
      }
    }
  }

  return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему