You are here

function luxe_menu_local_tasks_alter in Luxe 7

File

./luxe.module, line 4

Code

function luxe_menu_local_tasks_alter(&$data, $router_item, $root_path) {
  if (count($data['tabs']) == 0) {
    return;
  }
  foreach ($data['tabs'][0]['output'] as $id => $tab) {
    switch ($tab['#link']['path']) {
      case 'user/register':
      case 'user/login':
      case 'user/password':
        unset($data['tabs'][0]['output'][$id]);
        break;
    }
  }
}