Add custom css and js within a drupal module


As easy as to add this 2 lines:

drupal_add_js(drupal_get_path('module', 'mymodule') . '/myfile.js');
drupal_add_css(drupal_get_path('module', 'mymodule') . '/myfile.css');
Advertisements