CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Drupal Admin Menu
Pages: [1]

Author Topic: Drupal Admin Menu  (Read 5318 times)

jalama

  • I post frequently
  • ***
  • Posts: 176
  • Karma: 22
    • Rooty Hollow LLC
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.2.5 and 5.3
Drupal Admin Menu
June 10, 2008, 11:17:07 am
What would it take to add a CiviCRM section to Drupal's Admin Menu Module using the modules hook_admin_menu() hook? The module is found here http://drupal.org/project/admin_menu. I would be happy to do the leg work here, but don't know where to even start.

I am a Drupal developer, So when I say I can handle the leg work I mean all the coding, just need guidance on what I should do the coding, etc...

http://www.rootyhollow.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal Admin Menu
June 10, 2008, 12:00:17 pm
I assume u r doing this for drupal 5 (we changed the menu structure significantly in drupal 6 / CiviCRM 2.1)

Your best bet is to extend civicrm.module and add civicrm_admin_menu and send over the relevant civicrm links you want exposed

lobo

p.s> I've been playing with the module and it seems quite cool. I'll add the admin_menu hook for v2.1. My patch for 2.1 can be found here: http://fisheye.civicrm.org/changelog/CiviCRM/trunk?cs=15040. Its fairly primitive, so if u improve on it, let me know and i'll integrate it with core

« Last Edit: June 10, 2008, 12:15:19 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Drupal Admin Menu
August 30, 2008, 01:19:57 am
I use it on all my Drupal sites (many of which are CiviCRM integrated). Having this would be great.

/carmi

jalama

  • I post frequently
  • ***
  • Posts: 176
  • Karma: 22
    • Rooty Hollow LLC
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.2.5 and 5.3
Re: Drupal Admin Menu
September 23, 2008, 12:51:41 pm
So I have this set up on a Drupal 6.4/CiviCRM 2.1 Beta 5 set-up (php5.2, Apache 2.2 MYSQL 5)

I am having a funny issue where the CIVICRM menu keep s being related to be a sub-menu of User Setting and sometimes disappearing completely.  I'm not 100% sure this isn't an issue with the admin menus module but wanted to see if anyone else had this issue.

I'm going to debug over the next couple of days.

It does reset correctly if I use the wipe & rebuild button under Site Configuration | Administration Menu
http://www.rootyhollow.com

jalama

  • I post frequently
  • ***
  • Posts: 176
  • Karma: 22
    • Rooty Hollow LLC
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6 and 7
  • MySQL version: 5.1
  • PHP version: 5.2.5 and 5.3
Re: Drupal Admin Menu
November 20, 2008, 12:50:41 pm
commenting out line 746, 'parent_path' => 'CiviCRM', in civicrm.module seems to fix this issue .  makes sense as this line is saying the civicrm admin menu should be anchored to the CiviCRM menu which this line is part of the array that creates the CiviCRM menu item. commenting this out anchors the menu at the top level
http://www.rootyhollow.com

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal Admin Menu
November 20, 2008, 01:46:04 pm

this is now fixed and will be part of 2.1.3

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Drupal Admin Menu

This forum was archived on 2017-11-26.