nid) {
case 97084:
$extra = branches_body_contrib();
break;
case 93997:
$extra = branches_body_core();
break;
}
$node->content['body']['#value'] .= $extra;
}
}
function branches_body_contrib() {
$output = '
';
$query= db_query("SELECT DISTINCT tag, COUNT(*) AS total
FROM {cvs_tags}
WHERE nid != 3060 AND nid != 0 AND tag RLIKE 'DRUPAL' AND branch = 1
GROUP BY tag ORDER BY tag DESC");
while($tag = db_fetch_object($query)) {
$output .= ' - ' . check_plain($tag->tag) . ' ('. $tag->total .' projects)
';
}
$output .= '
';
return $output;
}
function branches_body_core() {
$output = '';
$query= db_query("SELECT tag
FROM {cvs_tags}
WHERE nid = 3060 AND branch = 1 AND tag != 'DRUPAL-3-00'
ORDER BY tag DESC");
while($tag = db_fetch_object($query)) {
$output .= ' - ' . check_plain($tag->tag) . '
';
}
$output .= '
';
$output .= '';
$output .= 'The tags currently available in Drupal core are:
';
$output .= '';
$query= db_query("SELECT tag
FROM {cvs_tags}
WHERE nid = 3060 AND branch = 0 AND tag RLIKE 'DRUPAL-'
ORDER BY tag DESC");
while($tag = db_fetch_object($query)) {
$output .= ' - ' . check_plain($tag->tag) . '
';
}
$output .= '
';
return $output;
}