drupal/submit.php

35 lines
626 B
PHP

<?php
include_once "includes/common.inc";
page_header();
$theme->header();
if (user_access("post content")) {
if ($mod) {
module_invoke($mod, "user");
}
else {
foreach (module_list() as $name) {
if (module_hook($name, "user")) $options .= "<option value=\"$name\">$name</option>";
}
$form .= form_item(t("Submission type"), "<SELECT NAME=\"mod\">$options</SELECT>");
$form .= form_submit(t("Next step"));
$output .= form("submit.php", $form, "get");
$theme->box("Submit", $output);
}
}
else {
$theme->box("Submit", message_access());
}
$theme->footer();
page_footer();
?>