"structure_admin"); function content_types($name, $module) { global $types; if ($module[type]) $types[$name] = $name; } function category_form($edit = array()) { global $types; $threshold_post = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100); $threshold_dump = array(-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -20, -25, -30); $threshold_expire = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 90, 100); module_iterate("content_types"); $output .= "
\n"; return $output; } function category_overview() { $result = db_query("SELECT * FROM category ORDER BY name"); $output .= "name | type | comment | promote | submissions | operations |
---|---|---|---|---|---|
". check_output($category->name) ." | ". check_output($category->type) ." | ". node_comment_status($category->comment) ." | ". node_promote_status($category->promote) ." | ". node_submission_status($category->submission) ."". ($category->submission ? " post: $category->post, dump: $category->dump, expire: $category->expire" : "") ." | cid\">edit category |