Function __global->attach_to_javascript

Definitions

sources/site.php

  • Attach some extra JavaScript to <head>. Don't use this too commonly, it's not a 'tidy' way of doing things.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$data mixed No No required parameter N/A N/A JavaScript to attach (string or Tempcode)

Preview

Code (PHP)

/**
 * Attach some extra JavaScript to <head>. Don't use this too commonly, it's not a 'tidy' way of doing things.
 *
 * @param  mixed $data JavaScript to attach (string or Tempcode)
 */

function attach_to_javascript($data)