function _rdf_example_installed_instances in Examples for Developers 7
Return a structured array defining the instances for this content type.
Related topics
1 call to _rdf_example_installed_instances()
- rdf_example_install in rdf_example/
rdf_example.install - Implements hook_install().
File
- rdf_example/
rdf_example.install, line 85 - Install file for RDF Example module.
Code
function _rdf_example_installed_instances() {
$t = get_t();
return array(
'recipe_photo' => array(
'field_name' => 'recipe_photo',
'label' => $t('Photo of the prepared dish'),
),
'recipe_summary' => array(
'field_name' => 'recipe_summary',
'label' => $t('Short summary describing the dish'),
'widget' => array(
'type' => 'text_textarea',
),
),
);
}