You are here

function _biblio_get_formatted_fields in Bibliography Module 7

Same name and namespace in other branches
  1. 7.2 biblio.module \_biblio_get_formatted_fields()
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 node for submit to database. Contains code common to insert and update.

File

./biblio.module, line 1723
Bibliography Module for Drupal.

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;
}