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_settinghook is a global logic hook where the logic hook reference must be placed in./custom/Extension/application/Ext/LogicHooks/<file>.php</file>. - 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
$beanargument.
Change Log
| Version | Note | |
| 6.4.3 | Added entry_point_variables_setting hook |
|
Example
./custom/Extension/application/Ext/LogicHooks/<file>.php
<?php
$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
class application_hooks_class
{
function entry_point_variables_setting_method($event, $arguments)
{
//logic
}
}
?>