You are here

function advanced_forum_theme_image in Advanced Forum 5

Same name and namespace in other branches
  1. 6 advanced_forum.module \advanced_forum_theme_image()

Wrapper around theme_image that automatically includes the path.

6 calls to advanced_forum_theme_image()
advanced_forum_preprocess_advanced_forum_forum_legend in ./advanced_forum.module
Preprocesses template variables for the forum statistics template.
advanced_forum_preprocess_advanced_forum_topic_legend in ./advanced_forum.module
advanced_forum_preprocess_forums in ./advanced_forum.module
Preprocesses template variables for the forum template.
advanced_forum_preprocess_forum_list in ./advanced_forum.module
Preprocesses template variables for the forum list template.
theme_advanced_forum_reply_link in ./advanced_forum.module
Theme function to format the reply link at the top/bottom of topic.

... See full list

File

./advanced_forum.module, line 1171
Enables the look and feel of other popular forum software.

Code

function advanced_forum_theme_image($image_file, $alt = NULL, $title = NULL) {
  $image = advanced_forum_path_to_images() . "/{$image_file}";
  if ($title = NULL) {
    $title = $alt;
  }
  if (file_exists($image)) {
    return theme('image', $image, $alt, $title);
  }
  else {
    return false;
  }
}