function _spamicide_get_all_fields in Spamicide 6
1 call to _spamicide_get_all_fields()
- spamicide_form_alter in ./
spamicide.module - Implementation of hook_form_alter
File
- ./
spamicide.module, line 443 - This module provides yet another tool to eliminate spam.
Code
function _spamicide_get_all_fields() {
$spam_fields = array();
$result = db_query("SELECT form_field FROM {spamicide} ORDER BY form_field");
while ($spam_field = db_fetch_array($result)) {
$temp[] = $spam_field['form_field'];
}
foreach ($temp as $field) {
if (!in_array($field, $spam_fields)) {
$spam_fields[] = $field;
}
}
return $spam_fields;
}