Results 1 to 2 of 2

Thread: Logic Hook not accessing directory

  1. #1
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Question Logic Hook not accessing directory

    Hi All,
    Sugar version 5.5
    PHP version 5
    Mysql version 5.0.51a

    I have a problem, I don't know why my directory within the logic_hooks.php file not accessing its directory.
    I made sure to copy the exact directory on the server.
    logic_hooks.php Code:
    PHP Code:
    <?php
          
    if(!defined('sugarEntry') || !sugarEntry) die('Not a Vaild Entry Point');
          
    $hook_version=1;
          
    $hook_array= Array();
          
    $hook_array['after_retrieve']= Array();
          
    $hook_array['after_retrieve']= Array(1'SalaryCustomFunction''custom/modules/moduleName/fileName.php''SalaryCustom''SalaryCustomFunction');
          echo 
    "LogicHook ";
        
    //this is echo out on the screen
    ?>
    The logic hook file is being called as it is echoing onto the screen.
    The fileName.php code:
    PHP Code:
    <?php
     
    //code goes here
      
    ?>
    None of the code within readVacation.php file is being called. This is my confusion.
    Any ideas why????

    Thanks
    Last edited by Secret_Agent_99; 2010-02-16 at 07:05 PM.
    Agent 99
    Secret Service

  2. #2
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Cool Re: Logic Hook not accessing directory

    Missed the hook_array['after_retrieve'][]
    Agent 99
    Secret Service

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 2010-11-16, 02:41 AM
  2. Accessing custom field in logic hook
    By rickbraley in forum Developer Help
    Replies: 1
    Last Post: 2010-01-30, 10:48 AM
  3. Replies: 3
    Last Post: 2009-08-15, 03:00 AM
  4. help with a logic hook
    By souheil in forum Français
    Replies: 12
    Last Post: 2009-03-13, 09:00 AM
  5. logic Hook up
    By sugar7478 in forum Developer Help
    Replies: 8
    Last Post: 2008-07-11, 02:40 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
  •