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) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • how do I rearrange the tabs
Pages: [1]

Author Topic: how do I rearrange the tabs  (Read 1509 times)

matt.goodwin

  • Guest
how do I rearrange the tabs
June 11, 2009, 01:57:05 pm
I'd like to rearrange the order of the menu tabs in civicrm. Where can I do this?

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: how do I rearrange the tabs
June 11, 2009, 04:08:49 pm

implement the tabs hook and arrange the weights of each component as you desire

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtabs

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

matt.goodwin

  • Guest
Re: how do I rearrange the tabs
June 12, 2009, 10:46:52 am
created a new drupal module and copied the hook_civicrm_tabs code but it's not working. I think I'm missing something. Here's my module:
<code>
<?php
civicrm_initialize(TRUE);
function civicrm_test_civicrm_tabs( &$tabs, $contactID ) {
  unset( $tabs[1] );
  $url = CRM_Utils_System::url( 'civicrm/contact/view/contribution',
                                           "reset=1&snippet=1&force=1&cid=$contactID");
  $tabs[] = array( 'id'    => 'mySupercoolTab',
                         'url'   => $url,
                         'title' => 'Diet Tab',
                         'weight' => 3 );
}
</code>
« Last Edit: June 12, 2009, 10:55:25 am by ttamniwdoog »

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: how do I rearrange the tabs
June 12, 2009, 09:56:28 pm

Do you have an info file and did you enable this module in drupal?

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) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • how do I rearrange the tabs

This forum was archived on 2017-11-26.