Posted by tstoeckler on October 20, 2011 at 3:22pm
This module allows to create hidden fields.
Example:
<?php
$field = array(
// Set up your field array as usual.
);
$field['settings']['hidden'] = TRUE;
field_create_field($field);
?>Hidden fields are removed the administrative interface, as well from editing and viewing screens. They use a special 'hidden' widget and the special 'hidden' formatter provided by core.