contrib-jrockowitz/fieldset_helper/fieldset_helper.module, line 229
_fieldset_helper_format_id($text)Formats any string as fieldset id prepended with 'fieldset-'.
$text A string to be converted to a fieldset DOM id;
TRUE if a form contains a collapsible fieldset.
<?php
function _fieldset_helper_format_id($text) {
return form_clean_id(preg_replace('/[^a-z0-9]+/', '-', drupal_strtolower($text)));
}
?>