function node_gallery_api_update_7000 in Node Gallery 7
Setup admin thumbnail view modes.
File
- ./
node_gallery_api.install, line 178 - Install, update and uninstall functions for the node_gallery_api module.
Code
function node_gallery_api_update_7000() {
node_gallery_api_setup_display_modes();
// Add default rotation settings to all relationship types.
$types = node_gallery_api_get_all_relationship_types();
if (!empty($types)) {
foreach ($types as $type) {
$type->settings['manage_items']['rotation_radios'] = TRUE;
$type->settings['manage_items']['rotation_modal'] = TRUE;
$type
->save();
}
}
}