Functions/item type elements

item_type_elements()

From the Omeka root directory, this function is defined in the following file:

  • applications/helpers/NewThemeFunctions.php

Function defined

/**
 * Retrieve the set of values for item type elements.
 * 
 * @return array
 **/
function item_type_elements()
{
    $item = get_current_item();
    $elements = $item->getItemTypeElements();
    foreach ($elements as $element) {
        $elementText[$element->name] = item(ELEMENT_SET_ITEM_TYPE, $element->name);
    }
    return $elementText;
}