Documentation

function.crmScript.php

Tags
copyright

CiviCRM LLC

Table of Contents

Functions

smarty_function_crmScript()  : mixed
Add a Javascript file to a specific part of the page

Functions

smarty_function_crmScript()

Add a Javascript file to a specific part of the page

smarty_function_crmScript(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : mixed
Parameters
$params : array<string|int, mixed>

Array with keys:

  • ext: string, extension name. see CRM_Core_Resources::addScriptFile
  • file: string, relative file path. see CRM_Core_Resources::addScriptFile
  • url: string. see CRM_Core_Resources::addScriptURL
  • weight: int; default: CRM_Core_Resources::DEFAULT_WEIGHT (0)
  • region: string; default: CRM_Core_Resources::DEFAULT_REGION ('html-header')
$smarty : CRM_Core_Smarty
Tags
throws
Exception

        
On this page

Search results