? Drupal-differentiate-content-markers.patch Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.222 diff -u -r1.222 theme.inc --- includes/theme.inc 27 Jan 2005 12:57:08 -0000 1.222 +++ includes/theme.inc 27 Jan 2005 17:37:57 -0000 @@ -12,6 +12,19 @@ * @see themeable */ + /** + * @name Content markers + * @{ + * Markers used to designate content. + */ +define('MARKER_READ', 0); +define('MARKER_NEW', 1); +define('MARKER_UPDATED', 2); +define('MARKER_UNKOWN', 3); +/** + * @} End of "Content markers". + */ + /** * Hook Help - returns theme specific help and information. * @@ -699,12 +712,17 @@ * elements. * * @param $type - * Type of marker to return: 'new' or 'required' + * Type of marker to return: 'content' or 'required' + * @param $marker + * Number representing the marker to display + * @see MARKER_NEW, MARKER_UPDATED, MARKER_READ, MARKER_UNKOWN * @return * A string containing the marker. */ -function theme_mark($type = 'new') { - return '*'; +function theme_mark($type = 'content', $marker = MARKER_NEW) { + if (!in_array($marker, array(MARKER_READ, MARKER_UNKOWN))) { + return '*'; + } } /** Index: modules/comment.module =================================================================== RCS file: /cvs/drupal/drupal/modules/comment.module,v retrieving revision 1.329 diff -u -r1.329 comment.module --- modules/comment.module 27 Jan 2005 12:57:08 -0000 1.329 +++ modules/comment.module 27 Jan 2005 17:37:59 -0000 @@ -1017,7 +1017,7 @@ while ($comment = db_fetch_object($result)) { $comment->name = $comment->uid ? $comment->registered_name : $comment->name; $rows[] = array( - l($comment->subject, "node/$comment->nid", array('title' => htmlspecialchars(truncate_utf8($comment->comment, 128))), NULL, "comment-$comment->cid") ." ". (node_is_new($comment->nid, $comment->timestamp) ? theme('mark', 'new') : ''), + l($comment->subject, "node/$comment->nid", array('title' => htmlspecialchars(truncate_utf8($comment->comment, 128))), NULL, "comment-$comment->cid") ." ". theme('mark', 'content', node_is_new($comment->nid, $comment->timestamp)), format_name($comment), ($comment->status == 0 ? t('Published') : t('Not published')), format_date($comment->timestamp, 'small'), @@ -1549,7 +1549,7 @@ function theme_comment($comment, $links = 0) { $output = "