You are here

function _nfcbiblio_top_visible_type in Node form columns 7

Utility function to get a default biblio type

Return value

int The id of a default biblio type

1 call to _nfcbiblio_top_visible_type()
nfcbiblio_nodeformcols_base_form_alter in ./nfcbiblio.module
Implements hook_nodeformcols_base_form_alter().

File

./nfcbiblio.module, line 34

Code

function _nfcbiblio_top_visible_type() {
  return db_query_range("SELECT tid\n    FROM {biblio_types}\n    WHERE visible = :visible\n    AND tid >= :tid\n    ORDER BY weight ASC", 0, 1, array(
    ':visible' => 1,
    ':tid' => 0,
  ))
    ->fetchField();
}