Skip to content

Instantly share code, notes, and snippets.

View erop's full-sized avatar

Egor Ushakov erop

View GitHub Profile
@bickart
bickart / repair.php
Created April 26, 2013 15:29
How to perform a SugarCRM Quick Repair and Rebuild from the line
#!/usr/bin/php
<?php
/*
* Copyright 2013
* Jeff Bickart
* @bickart
* jeff @ neposystems.com
*/
@chadhutchins
chadhutchins / accounts_logic_hook.php
Created November 28, 2012 22:01
Installing Global Logic Hooks in SugarCRM using the Module Loader
<?php
class Accounts_logic_hook_class
{
function Accounts_logic_hook_method(&$bean, $event, $arguments)
{
echo "Hit the Accounts before save logic hook";
exit;
}
}
<?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()