Results 1 to 2 of 2

Thread: Module loader : how to automatically repair accounts module

  1. #1
    yannick038 is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    49

    Default Module loader : how to automatically repair accounts module

    My custom module add files to custom/modules/Accounts/Ext/Vardefs/
    Problem is that I must manually repair Sugar one time to enable the modification.

    How can i say to the module loader to repair all or specific-given modules after installing ?

    Thanks for your feedbacks!

  2. #2
    asavaliya is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    50

    Default Re: Module loader : how to automatically repair accounts module

    hi
    you have to write file <yr_module>/scripts/>post_install.php, it will be run after installation of module.
    Below is the code required to do repair and rebuild process

    require_once('modules/Administration/QuickRepairAndRebuild.php');
    $randc = new RepairAndClear();
    $randc->rebuildExtensions();

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automatically enter a record when installing via module loader
    By robertbmirth in forum Developer Help
    Replies: 1
    Last Post: 2010-09-08, 02:53 AM
  2. Replies: 1
    Last Post: 2010-01-07, 04:11 AM
  3. Replies: 1
    Last Post: 2009-09-06, 10:52 PM
  4. Replies: 1
    Last Post: 2009-02-02, 11:06 AM
  5. Replies: 3
    Last Post: 2009-01-30, 08:32 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
  •