CRM Open Source Business & Social CRM Software

Results 1 to 7 of 7

Thread: Logic Hook types

  1. #1
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,409

    Default Logic Hook types

    What logic hooks are available?

    in the wiki http://www.sugarcrm.com/wiki/index.p...l_custom_logic

    it describes

    * before_delete (after_delete)
    * before_restore (after_restore)
    * after_retrieve
    * before_save
    * after_ui_frame
    * after_ui_footer
    * server_round_trip
    * process_record
    * before_logout (after_logout)
    * after_login
    * login_failed


    But I know there is also after_save and I wondered if there are any others

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,266

    Default Re: Logic Hook types

    Here are all the logic hooks that I could find and where they are used in the code
    before_save
    after_save
    before_retrieve
    after_retrieve
    process_record
    before_delete
    after_delete
    before_restore
    after_restore
    server_round_trip
    after_ui_frame
    after_ui_footer
    before_logout
    after_logout
    after_login
    login_failed


    data\SugarBean.php(1258): $this->call_custom_logic("before_save", $custom_logic_arguments);
    data\SugarBean.php(1559): $this->call_custom_logic('after_save', '');
    data\SugarBean.php(2086): $this->call_custom_logic('before_retrieve', $custom_logic_arguments);
    data\SugarBean.php(2174): $this->call_custom_logic("after_retrieve", $custom_logic_arguments);
    data\SugarBean.php(3413): $temp->call_custom_logic("process_record");
    data\SugarBean.php(3893): $bean->call_custom_logic("process_record");
    data\SugarBean.php(4059): $this->call_custom_logic("before_delete", $custom_logic_arguments);
    data\SugarBean.php(4070): $this->call_custom_logic("after_delete", $custom_logic_arguments);
    data\SugarBean.php(4083): $this->call_custom_logic("before_restore", $custom_logic_arguments);
    data\SugarBean.php(4090): $this->call_custom_logic("after_restore", $custom_logic_arguments);
    data\SugarBean.php(5033): $this->call_custom_logic("process_record");
    include\utils.php(2478): $GLOBALS['logic_hook']->call_custom_logic('', 'server_round_trip');
    include\ListView\ListView.php(277): $aItem->call_custom_logic("process_record");
    include\MVC\View\SugarView.php(105): $GLOBALS['logic_hook']->call_custom_logic('', 'after_ui_frame');
    include\MVC\View\SugarView.php(110): $GLOBALS['logic_hook']->call_custom_logic('', 'after_ui_footer');
    modules\Users\Logout.php(49): $GLOBALS['current_user']->call_custom_logic('before_logout');
    modules\Users\Logout.php(63): $GLOBALS['logic_hook']->call_custom_logic('Users', 'after_logout');
    modules\Users\authentication\AuthenticationControl ler.php(119): $GLOBALS['current_user']->call_custom_logic('after_login');
    modules\Users\authentication\AuthenticationControl ler.php(123): $GLOBALS['logic_hook']->call_custom_logic('Users', 'login_failed');
    modules\Users\authentication\AuthenticationControl ler.php(158): $GLOBALS['current_user']->call_custom_logic('before_logout');
    modules\Users\authentication\AuthenticationControl ler.php(161): $GLOBALS['logic_hook']->call_custom_logic('Users', 'after_logout');
    soap\SoapSugarUsers.php(126): $current_user->call_custom_logic('after_login');
    soap\SoapSugarUsers.php(131): $GLOBALS['logic_hook']->call_custom_logic('Users', 'login_failed');
    soap\SoapSugarUsers.php(179): $GLOBALS['logic_hook']->call_custom_logic('Users', 'login_failed');
    soap\SoapSugarUsers.php(707): $current_user->call_custom_logic('before_logout');
    soap\SoapSugarUsers.php(709): $GLOBALS['logic_hook']->call_custom_logic('Users', 'after_logout');
    soap\SoapSugarUsers.php(713): $GLOBALS['logic_hook']->call_custom_logic('Users', 'after_logout');

  3. #3
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Logic Hook types

    Can you believe it? So many, and I'm sitll missing some!
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  4. #4
    mikesolomon is offline Sugar Community Member
    Join Date
    Feb 2008
    Location
    UK
    Posts
    1,409

    Default Re: Logic Hook types

    thanks

    looks like the wiki could do with some updating

  5. #5
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Logic Hook types

    Wiki page = updated
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

  6. #6
    skaag is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    14

    Default Re: Logic Hook types

    No, it's not updated - It still does not talk about after_save

    The page I'm looking at in the wiki is here:
    http://www.sugarcrm.com/wiki/index.p...l_custom_logic

    Skaag

  7. #7
    SugarDev.net is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    1,401

    Default Re: Logic Hook types

    Quote Originally Posted by skaag
    No, it's not updated - It still does not talk about after_save

    The page I'm looking at in the wiki is here:
    http://www.sugarcrm.com/wiki/index.p...l_custom_logic

    Skaag
    Yes, it was updated. But after_save was still missing. Added it just now.
    Developers go here
    Businesses go there (Dutch)

    Modules:
    SugarDev.net Developer Tools | Config | Dutch Language Pack
    "Nothing gets fixed unless there is a bug"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Logic Hook - Works in custom, not in main
    By spyro187 in forum Developer Help
    Replies: 4
    Last Post: 2008-06-09, 08:19 PM
  2. Logic Hook help to create tasks when Case is opened
    By lordforbes in forum Developer Help
    Replies: 3
    Last Post: 2007-03-27, 08:29 PM
  3. useful logic hook.. php newbie
    By ispytodd in forum Developer Help
    Replies: 8
    Last Post: 2006-12-28, 02:31 PM
  4. Adding Logic Hook to existing
    By Superman in forum Developer Help
    Replies: 2
    Last Post: 2006-12-18, 10:38 PM
  5. Logic Hook Question
    By swhitlow in forum Developer Help
    Replies: 1
    Last Post: 2006-06-04, 05:49 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •