drupal_get_path()

Submitted by shiv on Sun, 11/20/2016 - 10:45
  <?php /* Comment goes here */ 
drupal_get_path($type, $name)
?> 
The valid types are as listed:
  • module
  • theme
  • profile
  • theme_engine
  <?php /* Get theme path */ 
drupal_get_path('theme', 'YourThemeName')
?> 
  <?php /* Get Module path */ 
drupal_get_path('module', 'name_of_module');
?> 

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.