function example_drupal_add_js_external in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \example_drupal_add_js_external()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 1246
Code
function example_drupal_add_js_external() {
// Single quotes.
drupal_set_html_head('<script type="text/javascript" src="http://example.com/example.js" />');
drupal_set_html_head('<script src="http://example.com/example.js" type="text/javascript" />');
drupal_set_html_head('<SCRIPT SRC="http://example.com/example.js" TYPE="text/javascript" />');
// Double quotes.
drupal_set_html_head("<script type='text/javascript' src='http://example.com/example.js' />");
drupal_set_html_head("<script src='http://example.com/example.js' type='text/javascript' />");
drupal_set_html_head("<SCRIPT SRC='http://example.com/example.js' TYPE='text/javascript' />");
}