function maxlength_remove_field_variables in Maxlength 6.2
Removes the variables for a field
Parameters
$field_name: The machine fieldname of a field.
2 calls to maxlength_remove_field_variables()
- maxlength_field_remove_submit in ./
maxlength.module - Submit callback that removes the maxlength variables.
- maxlength_uninstall in ./
maxlength.install - Implementation of hook_unistall().
File
- ./
maxlength.module, line 77 - Enables a max length countdown on node body, title and CCK textfields.
Code
function maxlength_remove_field_variables($field_name) {
variable_del('maxlength_' . $field_name);
variable_del('maxlength_' . $field_name . '_js');
variable_del('maxlength_' . $field_name . '_text');
}