function TaxonomyMenuWebTestCase::getTextFormat in Taxonomy menu 7
Get the first available text format.
1 call to TaxonomyMenuWebTestCase::getTextFormat()
- TaxonomyMenuWebTestCase::createNewTerm in ./
taxonomy_menu.test - Create a new term record.
File
- ./
taxonomy_menu.test, line 40 - Tests for taxonomy_menu.module.
Class
- TaxonomyMenuWebTestCase
- Class with common helper methods.
Code
function getTextFormat() {
static $format = NULL;
if ($format === NULL) {
$format = db_query_range('SELECT format FROM {filter_format}', 0, 1)
->fetchField();
}
return $format;
}