function scald_gallery_installed_instances in Scald: Gallery 7
Same name and namespace in other branches
- 7.2 scald_gallery.install \scald_gallery_installed_instances()
List of initially installed field instances.
1 call to scald_gallery_installed_instances()
- scald_gallery_install in ./
scald_gallery.install - Implements hook_install().
File
- ./
scald_gallery.install, line 61 - Scald Gallery Installation.
Code
function scald_gallery_installed_instances() {
$instances = array(
'gallery_items' => array(
'field_name' => 'gallery_items',
'label' => t('Gallery items'),
'description' => t('Images that make up gallery.'),
'required' => TRUE,
'widget' => array(
'weight' => -4,
'type' => 'atom_reference_textfield',
),
'settings' => array(
'referencable_types' => array(
'image' => 'image',
),
),
),
);
foreach ($instances as &$instance) {
$instance['entity_type'] = 'scald_atom';
$instance['bundle'] = 'gallery';
}
return $instances;
}