Skip to content

Instantly share code, notes, and snippets.

@jdwfly
Last active October 12, 2015 22:28
Show Gist options
  • Save jdwfly/4096800 to your computer and use it in GitHub Desktop.
Save jdwfly/4096800 to your computer and use it in GitHub Desktop.
<?php
function custommodulename_node_view($node, $view_node, $langcode) {
if ($node->type == 'webform') {
drupal_add_js(drupal_get_path('module', 'custommodulename'). '/garlic.js');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment