function sharedblocks_update_7004 in Shared Blocks 7.2
Disable requiring the block security tokens for existing installs.
File
- ./
sharedblocks.install, line 106 - Install, update and uninstall functions for the sharedblocks module.
Code
function sharedblocks_update_7004() {
$blocks = variable_get('sharedblocks_publish', array());
$token = variable_get('sharedblocks_require_token');
if (!empty($blocks) && !isset($token)) {
variable_set('sharedblocks_require_token', 0);
drupal_set_message(t('The shared blocks security token requirement has been disabled in order to not break any shared blocks. You should <a href="@url">enable the security token</a> once all the subscriptions have been updated with the new URLs.', array(
'@url' => url('admin/structure/sharedblocks/publish'),
)));
}
}