Index: modules/epublish/epublish.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/epublish/epublish.module,v retrieving revision 1.13 diff -u -p -r1.13 epublish.module --- modules/epublish/epublish.module 10 Jul 2006 02:49:34 -0000 1.13 +++ modules/epublish/epublish.module 31 Oct 2006 16:33:15 -0000 @@ -1,5 +1,5 @@ pid); $exclusions = _epublish_build_node_exclusions(epublish_get_edition_nodes($eid)); - $filters[] = array(t('View posts that are new or updated'), "WHERE $exclusions ORDER BY n.changed DESC"); - $filters[] = array(t('View posts that need approval'), "WHERE ($exclusions) AND (n.status = 0 OR n.moderate = 1) ORDER BY n.changed DESC"); - $filters[] = array(t('View posts that are promoted'), "WHERE ($exclusions) AND (n.status = 1 AND n.promote = 1) ORDER BY n.changed DESC"); - $filters[] = array(t('View posts that are not promoted'), "WHERE ($exclusions) AND (n.status = 1 AND n.promote = 0) ORDER BY n.changed DESC"); - $filters[] = array(t('View posts that are sticky'), "WHERE ($exclusions) AND (n.status = 1 AND n.sticky = 1) ORDER BY n.changed DESC"); - $filters[] = array(t('View posts that are unpublished'), "WHERE ($exclusions) AND (n.status = 0 AND n.moderate = 0) ORDER BY n.changed DESC"); - - // Render filter form: - $options = array(); - foreach ($filters as $key => $value) { - $options[] = $value[0]; - } - $form[] = array('#value' => "