'likewise_archive_', 'type' => MENU_NORMAL_ITEM, 'access arguments' => array('access content'), ); return $items; } function likewise_archive_(){ drupal_set_title("Archive"); $output = ""; $result = db_query("SELECT entity_id, DATE_FORMAT(field_month_value, '%M %Y') AS month FROM `likewise_d_field_data_field_month` ORDER BY `likewise_d_field_data_field_month`.`field_month_value` DESC LIMIT 0 , 30"); $cur = ""; $first = TRUE; foreach ($result as $record) { if($cur != $record->month){ $cur = $record->month; if($first==TRUE){ $output .= "
Archives
".$record->month."
".$record->month."
"; return $output; } The Likewise Folio
October 2014