Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
9aebbcfc
Commit
9aebbcfc
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: possibility to have more hooks in the same page
New: add left search block hook and extra left block hook
parent
1f4fd52d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/class/conf.class.php
+1
-1
1 addition, 1 deletion
htdocs/core/class/conf.class.php
htdocs/main.inc.php
+13
-5
13 additions, 5 deletions
htdocs/main.inc.php
with
14 additions
and
6 deletions
htdocs/core/class/conf.class.php
+
1
−
1
View file @
9aebbcfc
...
...
@@ -2,7 +2,7 @@
/* Copyright (C) 2003-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Xavier Dutoit <doli@sydesy.com>
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-201
0
Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2005-201
1
Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2006 Jean Heimburger <jean@tiaris.info>
*
* This program is free software; you can redistribute it and/or modify
...
...
This diff is collapsed.
Click to expand it.
htdocs/main.inc.php
+
13
−
5
View file @
9aebbcfc
...
...
@@ -1373,10 +1373,14 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
// Search form hook of thirdparty module
if
(
!
empty
(
$object
->
hooks
[
'searchform'
]))
{
$searchform
.
=
'<!-- Begin search form hook area -->'
.
"
\n
"
;
foreach
(
$object
->
hooks
[
'searchform'
]
as
$module
)
{
$searchform
.
=
$module
->
printSearchForm
();
}
$searchform
.
=
"
\n
"
.
'<!-- End of search form hook area -->'
.
"
\n
"
;
}
// Define $bookmarks
...
...
@@ -1482,19 +1486,23 @@ function left_menu($menu_array_before, $helppagename='', $moresearchform='', $me
}
print
"
\n
"
;
print
"</div>
\n
"
;
print
"<!-- End left vertical menu -->
\n
"
;
print
"
\n
"
;
// Left block hook of thirdparty module
if
(
!
empty
(
$object
->
hooks
[
'leftblock'
]))
{
print
'<!-- Begin left block hook area -->'
.
"
\n
"
;
foreach
(
$object
->
hooks
[
'leftblock'
]
as
$module
)
{
$module
->
printLeftBlock
();
}
print
"
\n
"
.
'<!-- End of left block hook area -->'
.
"
\n
"
;
}
print
"</div>
\n
"
;
print
"<!-- End left vertical menu -->
\n
"
;
print
"
\n
"
;
if
(
$conf
->
use_javascript_ajax
&&
$conf
->
global
->
MAIN_MENU_USE_JQUERY_LAYOUT
)
print
'</div> <!-- End left layout -->'
.
"
\n
"
;
else
print
'</td>'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment