Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
brienne
Developer Documentation
Commits
72c19cdb
Commit
72c19cdb
authored
7 years ago
by
Sean Madsen
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #282 from davidjosephhayes/patch-1
Update hook_civicrm_caseSummary.md
parents
917c5c25
db4f705b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/hooks/hook_civicrm_caseSummary.md
+24
-15
24 additions, 15 deletions
docs/hooks/hook_civicrm_caseSummary.md
with
24 additions
and
15 deletions
docs/hooks/hook_civicrm_caseSummary.md
+
24
−
15
View file @
72c19cdb
...
...
@@ -25,13 +25,18 @@ underneath the existing summary table.
<?php
function myModule_civicrm_caseSummary($caseID) {
/* Quick way to test what some results look like.
return array('some_unique_id' => array( 'label' => ts('Some Date'),
'value' => '2009-02-11',
),
'some_other_id' => array( 'label' => ts('Some String'),
'value' => ts('Coconuts'),
),
);
return array(
array(
'some_unique_id' => array(
'label' => ts('Some Date'),
'value' => '2009-02-11',
),
'some_other_id' => array(
'label' => ts('Some String'),
'value' => ts('Coconuts'),
),
),
);
*/
// More realistic example, but will return nothing unless you have these activities in your database.
...
...
@@ -83,13 +88,17 @@ underneath the existing summary table.
$mcstat = CRM_Core_DAO::singleValueQuery( $sql, $params );
return array('modrtw' => array( 'label' => ts('Mod RTW:'),
'value' => $modrtw,
),
'mcstat' => array( 'label' => ts('Consent Status:'),
'value' => ts($mcstat),
),
);
return array(
array(
'modrtw' => array(
'label' => ts('Mod RTW:'),
'value' => $modrtw,
),
'mcstat' => array( 'label' => ts('Consent Status:'),
'value' => ts($mcstat),
),
),
);
Put this in css/extras.css:
...
...
@@ -97,4 +106,4 @@ underneath the existing summary table.
#modrtw {display: table-row; border: 1px solid #999999; width: 200px;}
#mcstat {display: table-row; border: 1px solid #999999; border-left: 0; width: 200px;}
#caseSummary label {display: table-cell;}
#caseSummary div {display: table-cell; padding-left: 5px; padding-right: 5px;}
\ No newline at end of file
#caseSummary div {display: table-cell; padding-left: 5px; padding-right: 5px;}
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