Skip to content
Snippets Groups Projects
Unverified Commit 1a6ac90b authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #583 from eileenmcnaughton/patch-1

Remove 4.4 references - too old now
parents c3f11e34 350de618
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,7 @@ contributions and events.
// return an html snippet etc.
$url = CRM_Utils_System::url( 'civicrm/contact/view/contribution',
"reset=1&snippet=1&force=1&cid=$contactID" );
// $url should return in 4.4 and prior an HTML snippet e.g. '<div><p>....';
// in 4.5 and higher this needs to be encoded in json. E.g. json_encode(array('content' => <html form snippet as previously provided>));
// this needs to be encoded in json. E.g. json_encode(array('content' => <html form snippet>));
// or CRM_Core_Page_AJAX::returnJsonResponse($content) where $content is the html code
// in the first cases you need to echo the return and then exit, if you use CRM_Core_Page method you do not need to worry about this.
$tabs[] = array( 'id' => 'mySupercoolTab',
......@@ -109,4 +108,4 @@ contributions and events.
'weight' => 300,
);
}
}
\ No newline at end of file
}
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