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.
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}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With