Global Control Links

Overview

Managing global control links.
Global control links are the links located in the profile drop down.
Screenshot_1_23_13_5_46_PM.png
Sugar 6.0 through 6.4 will look similar to this:
Screen-shot-2011-03-15-at-4.36.15-PM.png

Modifying the Links

As of 6.3.x, global control links can be created using the extension framework. The global links extension directory is located at ./custom/Extension/application/Ext/GlobalLinks/. Global link files found is this directory will be compiled into ./custom/application/Ext/GlobalLinks/links.ext.php after a Quick Repair and Rebuild.
Prior to 6.3.x, a global link was added by creating the file ./custom/include/globalControlLinks.php. This method of creating global links is still compatible but is not recommended from a best practices standpoint.

Examples

This example will demonstrate how to add a link to the global links:
./custom/Extension/application/Ext/GlobalLinks/<file>.php
<?php

    $global_control_links['google'] = array(
        'linkinfo' => array(
            //String Text => URL
            $app_strings['LBL_SUGARCRM'] => 'http://www.sugarcrm.com'
        )
    );
Next, we will define the app_string:
./custom/Extension/application/Ext/Language/<language>.<file>.php
<?php

    $app_strings['LBL_SUGARCRM'] = 'SugarCRM';
This example will demonstrate how to remove a global link:
./custom/Extension/application/Ext/GlobalLinks/<file>.php
<?php

    if (isset($global_control_links['employees']))
    {
        unset($global_control_links['employees']);
    }