You are here

function _spamicide_field_post_render in Spamicide 7

Same name and namespace in other branches
  1. 6 spamicide.module \_spamicide_field_post_render()

#post_render callback on the spamicide field. This will wrap the field in a div so it can be hidden with CSS.

1 string reference to '_spamicide_field_post_render'
spamicide_form_alter in ./spamicide.module
Implements hook_form_alter().

File

./spamicide.inc, line 83
This module provides yet another tool to eliminate spam.

Code

function _spamicide_field_post_render($content, $element) {
  return '<div class="' . _spamicide_get_css_class($element['#name']) . '">' . $content . '</div>';
}