When creating your own Drupal module, you may need to add some styling or Javascript to improve the usability of your module. Here is how to do it.
PHP
1 |
drupal_add_js(drupal_get_path('module', 'MODULE_NAME') . '/common.js'); |
Similarly you can add CSS to your module as well
PHP
1 |
drupal_add_css(drupal_get_path('module', 'MODULE_NAME') . '/styles.css'); |