function theme_recipe_index_item in Recipe 5
Displays a single index item.
Return value
string the output for this item.
1 theme call to theme_recipe_index_item()
- recipe_build_index in ./
recipe.module  - Recursively traverses the term tree to construct the index.
 
File
- ./
recipe.module, line 1504  - recipe.module - share recipes for drupal 5.x
 
Code
function theme_recipe_index_item(&$term) {
  $description = $term->description != '' ? "<p class=\"recipe-desc\">" . $term->description . "</p>" : '';
  if ($term->count > 0) {
    return "<li ><div class=\"recipe-title\">" . l($term->name . " ({$term->count})", $term->link) . "</div>" . $description . $term->children . "</li>";
  }
  else {
    return "<li><div class=\"recipe-title\">" . $term->name . " ({$term->count})</div>" . $description . $term->children . "</li>";
  }
}