Skip to content

Instantly share code, notes, and snippets.

@avtaniket
Created July 6, 2015 08:02
Show Gist options
  • Save avtaniket/abf6e95300dde9e4f143 to your computer and use it in GitHub Desktop.
Save avtaniket/abf6e95300dde9e4f143 to your computer and use it in GitHub Desktop.
Sugar 7 : Customize the Relationship’s Behavior
<?php
$dictionary["Account"]["fields"]["accounts_ost__tickets_1"] = array (
'name' => 'accounts_ost__tickets_1',
'type' => 'link',
// 'relationship' => 'accounts_ost__tickets_1',
'source' => 'non-db',
'module' => 'OST__Tickets',
'bean_name' => 'OST__Tickets',
'vname' => 'LBL_ACCOUNTS_OST__TICKETS_1_FROM_OST__TICKETS_TITLE',
'id_name' => 'accounts_ost__tickets_1ost__tickets_idb',
'link_file' => "custom/modules/Accounts/OSTicketsForAccountsLink.php",
'link_class' => "OSTicketsForAccountsLink",
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment