Reputation: 193
I have tried to use the code bellow, but Its not working: ('test' is my subtheme )
$image = file_directory_path() . "/sites/all/themes/test/images/brasil.png";
Upvotes: 0
Views: 57
Reputation: 10414
D7:
$image = DRUPAL_ROOT . "/sites/all/themes/test/images/brasil.png";
D6 and D7:
$image = getcwd() . "/sites/all/themes/test/images/brasil.png";
D6 and D7
global $base_url;
$image = $base_url . "/sites/all/themes/test/images/brasil.png";
Upvotes: 1