function _scald_create_thumbnail_field in Scald: Media Management made easy 7
Create a field to store atom thumbnails.
2 calls to _scald_create_thumbnail_field()
- scald_enable in ./
scald.install - Implements hook_enable().
- scald_update_7004 in ./
scald.install - Ensure that a thumbnail fields exits.
File
- ./
scald.install, line 352
Code
function _scald_create_thumbnail_field() {
// Create the scald_thumbnail field.
if (!field_info_field('scald_thumbnail')) {
$field = array(
'field_name' => 'scald_thumbnail',
'type' => 'image',
);
field_create_field($field);
}
}