Skip to content
Snippets Groups Projects
Commit 72c19cdb authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

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
......@@ -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;}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment