Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
crm_core
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
crm_core
Commits
9ebd3e08
Commit
9ebd3e08
authored
Apr 23, 2013
by
Kirill Roskolii
Browse files
Options
Downloads
Patches
Plain Diff
#12538
: Fixed breadcrumb at reports page.
parent
793a7636
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/crm_core_report/crm_core_report.module
+11
-12
11 additions, 12 deletions
modules/crm_core_report/crm_core_report.module
modules/crm_core_report/pages/crm_core_report.pages.inc
+14
-5
14 additions, 5 deletions
modules/crm_core_report/pages/crm_core_report.pages.inc
with
25 additions
and
17 deletions
modules/crm_core_report/crm_core_report.module
+
11
−
12
View file @
9ebd3e08
...
...
@@ -10,11 +10,13 @@
*/
function
crm_core_report_hook_info
()
{
$hooks
=
array
(
//
r
egisters reports from submodules within CRM Core, for central display
//
R
egisters reports from submodules within CRM Core, for central display
.
'crm_core_report_register'
=>
array
(
'group'
=>
'crm_core_report'
,
),
);
return
$hooks
;
}
/**
...
...
@@ -36,9 +38,7 @@ function crm_core_report_menu() {
$items
=
array
();
/**
* Provides a listing of all reports registered for CRM Core
*/
// Provides a listing of all reports registered for CRM Core.
$items
[
'crm-core/reports'
]
=
array
(
'title'
=>
'Reports'
,
'page callback'
=>
'crm_core_report_list'
,
...
...
@@ -48,7 +48,6 @@ function crm_core_report_menu() {
);
return
$items
;
}
/**
...
...
@@ -81,8 +80,10 @@ function crm_core_report_preprocess_crm_core_report_index(&$variables) {
foreach
(
$item
[
'reports'
]
as
$report
)
{
$items
[]
=
l
(
$report
[
'title'
],
$report
[
'path'
])
.
'<br />'
.
$report
[
'description'
];
}
$report_items
[]
=
theme
(
'item_list'
,
array
(
'items'
=>
$items
,
'title'
=>
$item
[
'title'
]));
$report_items
[]
=
theme
(
'item_list'
,
array
(
'items'
=>
$items
,
'title'
=>
$item
[
'title'
]
));
}
}
...
...
@@ -102,8 +103,6 @@ function hook_crm_core_report_register(){
$function
=
$module
.
'_crm_core_report_register'
;
$reports
=
array_merge
(
$reports
,
$function
());
}
return
$reports
;
}
This diff is collapsed.
Click to expand it.
modules/crm_core_report/pages/crm_core_report.pages.inc
+
14
−
5
View file @
9ebd3e08
<?php
/**
* Provides a listing of all reports registered for CRM Core
* @file
* Reports listing page.
*/
/**
* Provides a listing of all reports registered for CRM Core.
*/
function
crm_core_report_list
()
{
drupal_set_title
(
t
(
'Reports'
));
drupal_set_breadcrumb
(
array
(
l
(
t
(
'Home'
),
'<front>'
),
l
(
t
(
'CRM Core'
),
'crm-core'
),
l
(
t
(
'Reports'
),
'crm-core/reports'
),
));
$reports
=
hook_crm_core_report_register
();
return
empty
(
$reports
)
?
t
(
'There are no reports to display at this time.'
)
:
theme
(
'crm_core_report_index'
,
array
(
'reports'
=>
$reports
));
}
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