function microdata_get_itemref_id in Microdata 7
Maintains an iterator for itemref ids.
This is primarily a helper function for microdata module and module maintainers shouldn't need to use it under normal circumstances.
Related topics
2 calls to microdata_get_itemref_id()
- microdata_field_attach_view_alter in ./
microdata.module - Implements hook_field_attach_view_alter().
- _microdata_process_page in ./
microdata.module - Inserts the meta elements for items which have been added.
File
- ./
microdata.module, line 788
Code
function microdata_get_itemref_id() {
static $itemref_id_incrementer;
if (!isset($itemref_id_incrementer)) {
$itemref_id_incrementer = 0;
}
$itemref_id_incrementer++;
return 'md' . $itemref_id_incrementer;
}