Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add Tabs at Front in Drupal?

Tags:

php

drupal-7

How should I add tabs at the front end in user profile. As I changed at back end but I can not find any solution for this.

like image 526
Crazy4Php Avatar asked Nov 03 '22 14:11

Crazy4Php


1 Answers

If you want to create your own module, the code will look like this:

function downloaded_menu(){ $items['user/%user/downloaded'] = array( 'title' => 'Downloaded', 'page callback' => 'downloaded_content_page', 'access arguments' => array('access content'), 'type' => MENU_LOCAL_TASK, 'weight' => 10, ); return $items; }


downloaded_content_page(){your code here}
like image 80
Jigar Kotak Avatar answered Nov 14 '22 05:11

Jigar Kotak