The tab "Activity Stream" that linked to user/uid/edit/Activity+Stream is secondary and all users cant find it.

Im searching in activitystream.module how can I change from secondary tab to primary tab and i cant find it,probably this option is empty.

Maybe need a small code,like:

      $items[] = array(
        'path'  => 'user/'. arg(1) .'/edit/Activity+Stream',
        'title' => node_get_types('name', $type),
        'callback' => 'node_page_edit',
        'callback arguments' => array($node),
        'type' => MENU_LOCAL_TASK,
        'access' => user_access('access content'),
      );

i cant find out how to configure tabs in drupal...

Comments

akalsey’s picture

Status: Active » Postponed (maintainer needs more info)

I can't imagine a scenario in which a user wouldn't have access to the secondary tasks on their own account.

skullJ’s picture

I have 10+ feedbacks asking to move this menu item to primary tab menu.

Seriously i dont have any problem with secondary tab menu but more people cant find it. These feedbacks help your module.

I cant find the code that connect the "edit activity stream link" with secondary tab menu and either any help post here.
Can you tell me where code located to find by myself?

akalsey’s picture

Moving this would break the design conventions of Drupal. The form for editing your settings is part of the "Edit" menu. Having some edit forms as primary menus would make thing confusing for people in general.

If you want to add a link to the edit form elsewhere on your site, it's easy to do. Link to user/$uid/edit/Activity+Stream

The code that generates the form is in activitystream.module

<?php
function activitystream_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'form':
		if ($category == 'Activity Stream') {
			foreach (module_implements('activitystream_settings') as $name) {
				$function = $name .'_activitystream_settings';
			    $elements = $function($edit);
				foreach ($elements as $key=>$value) {
					$form[$key] = $value;
				}
			}
		}
		return $form;
		break;
//... snip ...
?>
akalsey’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)