* @param $params
* @param $smarty
*
- * @return int|string|void
+ * @return int|string|null
*/
function smarty_function_crmSetting($params, &$smarty) {
unset($errorScope);
if ($result === FALSE) {
$smarty->trigger_error("Unknown error");
- return;
+ return NULL;
}
if (empty($params['var'])) {
* - var: string, a smarty variable to generate
* - ts: int, the current time (if omitted, autogenerated)
* - any other vars are put into the signature (sorted)
+ * @param $smarty
*/
function smarty_function_crmSigner($params, &$smarty) {
$var = $params['var'];
*
* {crmVersion redact=auto assign=ver}The version is {$ver}.
* @endcode
+ *
+ * @param $params
+ * @param $smarty
+ *
+ * @return string
*/
function smarty_function_crmVersion($params, &$smarty) {
$version = CRM_Utils_System::version();