O'Reilly logo

vtiger CRM by Ian D. Rossi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - modifying your Locations module

Let's create a new file called Location-Mod.php and stick it into your vtiger root directory (vtigercrm by default):

  1. First, let's open the PHP file and turn on debugging:
    <?php
    // Turn on debugging level
    $Vtiger_Utils_Log = true;
    
  2. Now let's include the necessary classes so we can modify the Locations module:
    include_once('vtlib/Vtiger/Menu.php');
    include_once('vtlib/Vtiger/Module.php');
    
  3. Now let's modify the More Information section of the Location screen to show a list of Potentials. The function setRelatedList takes as arguments the module instance that you want to link from (in this case, Locations), the label that you'll use in the listing of Potentials (Potentials), and the buttons to include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required