mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
using new hook location name "hook_location"
This commit is contained in:
parent
887cd00c4c
commit
a64cfea299
@ -103,11 +103,11 @@ class etemplate_new extends etemplate_widget_template
|
|||||||
function exec($method,array $content,array $sel_options=null,array $readonlys=null,array $preserv=null,$output_mode=0,$ignore_validation='',array $changes=null)
|
function exec($method,array $content,array $sel_options=null,array $readonlys=null,array $preserv=null,$output_mode=0,$ignore_validation='',array $changes=null)
|
||||||
{
|
{
|
||||||
$hook_data = $GLOBALS['egw']->hooks->process(
|
$hook_data = $GLOBALS['egw']->hooks->process(
|
||||||
array('location' => 'etemplate2_before_exec') +
|
array('hook_location' => 'etemplate2_before_exec') +
|
||||||
array('location_name' => $this->name) +
|
array('location_name' => $this->name) +
|
||||||
array('location_object' => &$this) +
|
array('location_object' => &$this) +
|
||||||
$content
|
$content
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($hook_data as $extras) {
|
foreach($hook_data as $extras) {
|
||||||
if (!$extras) continue;
|
if (!$extras) continue;
|
||||||
@ -350,7 +350,7 @@ class etemplate_new extends etemplate_widget_template
|
|||||||
|
|
||||||
$hook_data = $GLOBALS['egw']->hooks->process(
|
$hook_data = $GLOBALS['egw']->hooks->process(
|
||||||
array(
|
array(
|
||||||
'location' => 'etemplate2_before_process',
|
'hook_location' => 'etemplate2_before_process',
|
||||||
'location_name' => $template->id) +
|
'location_name' => $template->id) +
|
||||||
self::complete_array_merge(self::$request->preserv, $validated)
|
self::complete_array_merge(self::$request->preserv, $validated)
|
||||||
);
|
);
|
||||||
@ -384,7 +384,7 @@ class etemplate_new extends etemplate_widget_template
|
|||||||
|
|
||||||
$hook_data = $GLOBALS['egw']->hooks->process(
|
$hook_data = $GLOBALS['egw']->hooks->process(
|
||||||
array(
|
array(
|
||||||
'location' => 'etemplate2_after_process',
|
'hook_location' => 'etemplate2_after_process',
|
||||||
'location_name' => $template->id) +
|
'location_name' => $template->id) +
|
||||||
$tcontent
|
$tcontent
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user