Pages

Friday, March 2, 2012

Get the path to a Drupal module or theme

Suppose you have a image file in your custom module
Best way to take that image is

<img src="<?php echo base_path().drupal_get_path('module', 'module_name');?>/image_name.jpg" /> 



http://data.agaric.com/get-path-drupal-module-or-theme