$node->status=0;// Unpublish the form node - it won't be accessibly to the public.
drupal_set_message(t("Your form was created empty. It is considered as spam, and will soon be deleted automatically. Please insert at least one form field to prove this content is legitimate."),'warning');
}
// Republish nodes that were previously considered as spam where components were added
$node->status=0;// Unpublish the form node - it won't be accessibly to the public.
drupal_set_message(t("Your form contains suspicious words and is therefore considered as spam. The site's administrators will review it shortly."),'warning');
drupal_set_message(t("Your form contains suspicious words and is therefore considered as spam. The site's administrators will review it shortly."),'warning');
return;
}
// Check newly created form nodes for webform components. If no webfom components were inserted, put node into quarantine.
// Only checking nodes where nid != NULL because we only want to consider fully created nodes.