Let the platform do the work

entry_point_variables_setting

Overview

The entry_point_variables_setting application hook executes at the start of every entry point.

Definition

function entry_point_variables_setting($event, $arguments){}

Arguments

Name Type Description
event String The current event
arguments Array Additional information related to the event (typically empty)

Considerations

  • The entry_point_variables_setting hook is a global logic hook where the logic hook reference must be placed in ./custom/modules/logic_hooks.php.
  • This hook is executed at the start of every request at the end of ./include/entryPoint.php.
  • This hook does not make use of the $bean argument.

Change Log

Version Note
6.4.3 Added entry_point_variables_setting hook

Example

./custom/modules/logic_hooks.php

<?php

    $hook_version = 1;
    $hook_array = Array();

    $hook_array['entry_point_variables_setting'] = Array();
    $hook_array['entry_point_variables_setting'][] = Array(
        //Processing index. For sorting the array.
        1, 

        //Label. A string value to identify the hook.
        'entry_point_variables_setting example', 

        //The PHP file where your class is located.
        'custom/modules/application_hooks_class.php',

        //The class the method is in. 
        'application_hooks_class',

        //The method to call. 
        'entry_point_variables_setting_method' 
    );

?>

./custom/modules/application_hooks_class.php

<?php

    if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    class application_hooks_class
    {
        function entry_point_variables_setting_method($event, $arguments)
        {
            //logic
        }
    }

?>