AnsweredAssumed Answered

Sugar 7.5 OnDemand Logic Hook Installation

Question asked by CMiller00 CMiller00 on May 11, 2015
Latest reply on Aug 28, 2015 by Emil Maran
Hello All,

I'm new to logic hooks and i'm having difficulty getting my logic hook for copying a closed opportunity to a custom module. I have modified the opportunities module in studio and my custom module has identical fields.

The specific problem that I am having is that once I click "upload" in module loader, I see nothing but the Sugarcrm header and footer. I've waited as long as 30 min. and nothing happens. 

Has anyone else seen this issue? A copy of my installer code is below.

<?php
    $manifest =array(
        'acceptable_sugar_flavors' => array('CE','PRO','CORP','ENT','ULT'),
        'acceptable_sugar_versions' => array(
            'regex_matches' => array('(.*?)\\.(.*?)\\.(.*?)'),
        ),
        'author' => 'GlobaLogix Inc.',
        'description' => 'Installs the Awarded Opportunity Logic Hook',
        'icon' => '',
        'is_uninstallable' => true,
        'name' => 'Awarded Opportunity Logic Hook Installer',
        'published_date' => '2015-05-11',
        'type' => 'module',
        'version' => '1.0',
    );
    
    $installdefs =array(
        'id' => 'package_001',
        'copy' => array(
            0 => array(
                'from' => '<basepath>/Files/custom/modules/Opportunities/awarded.php',
                'to' => 'custom/modules/Opportunities/awarded.php',
   ),
  ),
 
     'logic_hooks' => array(
            array(
                'module' => 'Opportunities',
                'hook' => 'after_save',
                'order' => 99,
                'description' => 'Example Logic Hook - Updates account name',
                'file' => 'custom/modules/Opportunities/awarded.php',
                'class' => 'awarded',
                'function' => 'moveOpportunity',
            ),
        ),
 
  ),
    );




?>


Thank you,
Courtney

Outcomes