Skip to content

Instantly share code, notes, and snippets.

@erop
Forked from jwhitcraft/upgradesafe.php
Created March 28, 2012 19:59
Show Gist options
  • Save erop/2229997 to your computer and use it in GitHub Desktop.
Save erop/2229997 to your computer and use it in GitHub Desktop.
<?php
// this file is upgrade safe
// location: custom/modules/Contacts/views/view.detail.php
require_once('modules/Contacts/views/view.detail.php');
class CustomContactsViewDetail extends ContactsViewDetail {
/**
* @see SugarView::display()
*
* We are overriding the display method to manipulate the portal information.
* If portal is not enabled then don't show the portal fields.
*/
public function display()
{
// my custom code here
// call up the ContactsViewDetail Code to run the display after we have called
// all of our custom code.
parent::display();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment