function node_gallery_update_7006 in Node Gallery 7
Remove File Entity Link dependency. Replace with Node Gallery API's own link handling.
File
- ./
node_gallery.install, line 413 - Install, update and uninstall functions for the node_gallery module.
Code
function node_gallery_update_7006(&$sandbox) {
// Only change the default setting we programmatically added.
$settings = variable_get('file_entity_link_settings', array());
$settings['image']['node_gallery_file_thumbnail'] = FALSE;
variable_set('file_entity_link_settings', $settings);
// Replace it with our new setting.
$settings = variable_get('node_gallery_api_file_link_settings', array());
$settings['image']['node_gallery_file_thumbnail'] = 'gallery_item';
variable_set('node_gallery_api_file_link_settings', $settings);
$t = get_t();
return $t("File Entity Link module dependency removed from Node Gallery. You may disable this module if you aren't using it for other purposes.");
}