*/ /* * Menu callback: content administration. */ function moderation_node_queue() { drupal_add_css(drupal_get_path('module', 'moderation') .'/moderation.css'); $settings = array('moderationType' => 'node'); drupal_add_js('jQuery.extend(Drupal.settings, '. drupal_to_js($settings) .')', 'inline'); drupal_add_js(drupal_get_path('module', 'moderation') .'/moderation.js'); $query = "SELECT n.*, u.name, u.uid, mm.status as moderate FROM {node} n INNER JOIN {users} u ON n.uid = u.uid LEFT JOIN {moderation_moderation} mm ON n.nid = mm.obj_id WHERE mm.obj_type = 'node' AND (mm.status IS NULL OR mm.status=0) AND n.type IN ('" . implode('\' ,\'', variable_get('moderation_moderated_types', array())) ."') ORDER BY n.created DESC, n.title ASC"; $result = pager_query(db_rewrite_sql($query), 50); $destination = drupal_get_destination(); while ($node = db_fetch_object($result)) { $query = "SELECT m.*, u.name FROM {moderation} m LEFT JOIN {users} u ON m.uid = u.uid WHERE m.obj_id=%d AND m.obj_type='node' ORDER BY m.created DESC LIMIT 1"; $moderation = db_fetch_object(db_query($query, $node->nid)); $token = drupal_get_token('node-'. $node->nid); $item = '