function _spamicide_pre_render in Spamicide 6
1 string reference to '_spamicide_pre_render'
- spamicide_form_alter in ./
spamicide.module - Implementation of hook_form_alter
File
- ./
spamicide.module, line 336 - This module provides yet another tool to eliminate spam.
Code
function _spamicide_pre_render($form) {
$spamicide_field = _spamicide_get_field($form['form_id']['#value']);
if ($spamicide_field == 'feed_me') {
drupal_add_css(drupal_get_path('module', 'spamicide') . '/feed_me.css');
}
else {
drupal_add_css(file_directory_path() . '/spamicide/' . $spamicide_field . '.css');
}
return $form;
}