Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
colorbox-3127345
Commits
db57cb24
Commit
db57cb24
authored
Apr 03, 2010
by
frjo
Browse files
Adding some new variables to hook_uninstall.
parent
5cfb853b
Changes
1
Hide whitespace changes
Inline
Side-by-side
colorbox.install
View file @
db57cb24
...
...
@@ -29,7 +29,9 @@
*/
function
colorbox_uninstall
()
{
variable_del
(
'colorbox_auto_image_nodes'
);
variable_del
(
'colorbox_compression_type'
);
variable_del
(
'colorbox_custom_settings_activate'
);
variable_del
(
'colorbox_form'
);
variable_del
(
'colorbox_imagecache_preset'
);
variable_del
(
'colorbox_imagefield_gallery'
);
variable_del
(
'colorbox_login_custom'
);
...
...
@@ -47,3 +49,29 @@ function colorbox_uninstall() {
variable_del
(
'colorbox_transition_speed'
);
variable_del
(
'colorbox_transition_type'
);
}
/**
* Provides a upgrade path for Thickbox users.
* Replaces "thickbox" with "colorbox" in
* content_node_field_instance -> display_settings
*/
// function colorbox_update_6001() {
// $ret = array();
//
// $result = db_query("SELECT * FROM {content_node_field_instance}");
// while ($type = db_fetch_array($result)) {
// $new_settings = array();
// $display_settings = unserialize($type['display_settings']);
// if (!empty($display_settings)) {
// foreach ($display_settings as $key => $val) {
// $new_settings[$key] = $val;
// if ($key == 'format' && is_array($val)) {
// $new_settings[$key]['exclude'] = 0;
// }
// }
// }
// db_query("UPDATE {content_node_field_instance} SET display_settings='%s' WHERE field_name='%s' AND type_name='%s'", serialize($new_settings), $type['field_name'], $type['type_name']);
// }
//
// return $ret;
// }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment