function i18ntaxonomy_next_trid in Internationalization 6
Get next free trid.
1 call to i18ntaxonomy_next_trid()
- i18ntaxonomy_translation_save in i18ntaxonomy/
i18ntaxonomy.admin.inc - Save taxonomy term translations.
File
- i18ntaxonomy/
i18ntaxonomy.admin.inc, line 132 - Helper functions for taxonomy administration.
Code
function i18ntaxonomy_next_trid() {
$current = (int) db_result(db_query('SELECT max(trid) FROM {term_data}'));
return $current + 1;
}