You are here

function _spamicide_get_css_class in Spamicide 6

Same name and namespace in other branches
  1. 7 spamicide.inc \_spamicide_get_css_class()

Returns a CSS class name based on the field's name. Should be used to wrap around the field so it can be hidden.

Note that it should be pretty generic so it can't be sniffed out by a spammer.

Parameters

string $name: The field's name

Return value

string The CSS class

2 calls to _spamicide_get_css_class()
_spamicide_field_post_render in ./spamicide.module
#post_render callback on the spamicide field. This will wrap the field in a div so it can be hidden with CSS.
_spamicide_set_css_file in ./spamicide.module
Set the spamicide field name and .css file_name

File

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

Code

function _spamicide_get_css_class($name) {
  return 'edit-' . str_replace('_', '-', $name) . '-wrapper';
}