Is it possible to make the mailman_manager subscription setting page appear as a "Mailing Lists" tab in each user profile like the options/lists for other modules appear?

Thanks!

CommentFileSizeAuthor
#3 user_profile.png20.2 KBajzz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shiny’s picture

Assigned: Unassigned » Shiny

i'm travelling for a bit (OSCON), but i can look at this when i get back in about 3 weeks -- i will need to RTFM a bit.
arturoramos? feel free to beat me to it.

arturoramos’s picture

Can you elaborate on exactly what it is that you are requesting here?

Each user can currently change his/her subscriptions by going to their user profile and clicking edit... there is a tab there called "Mailing Lists."

As admin, you should be able to go into any user's profile and do the same.

If this is not what you are requesting, can you provide an example, perhaps a screenshot?

ajzz’s picture

FileSize
20.2 KB

This is precisely the feature I am looking for. Please clarify if this behavior is expected for the version I am using on my site?

Drupal 4.7.6, 2007-01-29 (CVS)
mailman_manager.module,v 1.1.2.26 2007/07/15 06:06:07 (CVS)

Currently the user profiles do *not* show a "mailing lists" tab. Installing and enabling access to the module only adds a "mailing lists" link to the navigation menu. When one clicks on this link, it opens up the user profile at the "edit" tab, without being ascribed to any sub-category. (i.e. the same information is not reachable from the edit tab directly from the user profile.) See attached screenshot.

arturoramos’s picture

It appears that the error is in the re-write of the category check.

Replacement of mailman_manager_user function beginning at line 95 with the following code appears to fix the problem. This needs further testing however:

function mailman_manager_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
  //Create menu option on user tab;

    case 'categories':
      $output_user[] = array('name' => 'mailman_manager', 'title' => t('Mailing Lists'), 'weight' => 9);
      return $output_user;

      break;

  //List mailing lists with user subscriptions and options;
    case 'form':
      if ($category == 'mailman_manager' && user_access('access mailman_manager')) {

          return _mailman_manager_user_form($account) ; 
      }
      break;
  //Update and process list subscriptions;
    case 'update':
        if ($category == 'mailman_manager' && user_access('access mailman_manager')) {

            _mailman_manager_user_update($account, $edit);
        }
  }
}
Shiny’s picture

is that my change?? i don't think i touched 4.7

arturoramos’s picture

Assigned: Shiny » arturoramos
Status: Active » Closed (fixed)

This issue has been fixed in the most recent stable release 5.x-1.0. The 4.7 branch will no longer be developed, though it can easily be fixed with the code change described above.