function rdfui_rdftype_fieldset in RDF Extensions 7.2
Appends the RDF type fieldset. Because this fieldset is always on the same page as fields created by rdfui_predicate_fieldset(), which add the css and js files, we do not add the files again.
2 calls to rdfui_rdftype_fieldset()
- rdfui_admin_rdf_overview_form in rdfui/
rdfui.module - Menu callback; listing of field RDF mappings for a content type.
- rdfui_form_node_type_form_alter in rdfui/
rdfui.module - Implements hook_form_FORM_ID_alter().
File
- rdfui/
rdfui.module, line 484
Code
function rdfui_rdftype_fieldset(&$fieldset, $mapping) {
$fieldset = array(
'#type' => 'textfield',
'#autocomplete_path' => 'rdfui/classes/autocomplete',
'#title' => t('RDF Type'),
'#default_value' => empty($mapping['rdftype']) ? '' : implode(", ", $mapping['rdftype']),
'#description' => t('Enter a comma-separated list of classes for this bundle using CURIE syntax. For example: %classes', array(
'%classes' => 'sioc:Item, foaf:Document',
)),
);
}