From 132fc68e903f9902a9a179538f1e83f832a03abc Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 28 Apr 2013 18:14:20 -0700 Subject: [PATCH] Update code comments --- CRM/Core/Resources.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CRM/Core/Resources.php b/CRM/Core/Resources.php index 66e94d2b06..8fa14b22cf 100644 --- a/CRM/Core/Resources.php +++ b/CRM/Core/Resources.php @@ -195,6 +195,14 @@ class CRM_Core_Resources { /** * Add JavaScript variables to the global CRM object. * + * Example: + * From the server: + * CRM_Core_Resources::singleton()->addSetting(array('myNamespace' => array('foo' => 'bar'))); + * From javascript: + * CRM.myNamespace.foo // "bar" + * + * @see http://wiki.civicrm.org/confluence/display/CRMDOC43/Javascript+Reference + * * @param $settings array * @return CRM_Core_Resources */ @@ -253,12 +261,6 @@ class CRM_Core_Resources { * Helper fn for addSetting * Render JavaScript variables for the global CRM object. * - * Example: - * From the server: - * CRM_Core_Resources::singleton()->addSetting(array('myNamespace' => array('foo' => 'bar'))); - * From javascript: - * CRM.myNamespace.foo // "bar" - * * @return string */ public function renderSetting() { -- 2.25.1