function _biblio_get_formatted_fields in Bibliography Module 7.2
Same name and namespace in other branches
- 7 biblio.module \_biblio_get_formatted_fields()
Gets a list of machine-readable field names from the biblio_fields db table
@todo check if needed in 7.x-2.x
Return value
array
2 calls to _biblio_get_formatted_fields()
- biblio_node_form_validate in ./
biblio.module - Implements hook_validate().
- _biblio_prepare_submit in ./
biblio.module - Prepare a biblio for submit to database. Contains code common to insert and update.
File
- ./
biblio.module, line 1677
Code
function _biblio_get_formatted_fields() {
$fields =& drupal_static(__FUNCTION__);
if (!isset($fields)) {
$query = db_select('biblio_fields', 'bf');
$result = $query
->fields('bf', array(
'name',
))
->condition('type', 'text_format')
->execute();
foreach ($result as $field) {
$fields[] = $field->name;
}
}
return (array) $fields;
}