function jplayer_update_7002 in jPlayer 7.2
Same name and namespace in other branches
- 8.2 jplayer.install \jplayer_update_7002()
Transition to the jplayer_protect module if jplayer content protection is enabled.
File
- ./
jplayer.install, line 93 - Installation file for jPlayer module.
Code
function jplayer_update_7002() {
if (variable_get('jplayer_protected', FALSE)) {
variable_set('jplayer_protect', TRUE);
if (!module_exists('jplayer_protect')) {
module_enable(array(
'jplayer_protect',
));
db_drop_table('jplayer_protect_denied');
db_rename_table('jplayer_denied', 'jplayer_protect_denied');
}
else {
return t('It appears that the jplayer_protect module has been manually enabled. Please move any data from the {jplayer_protect} table to the {jplayer_protect_denied} table and drop the {jplayer_protect} table.');
}
}
else {
db_drop_table('jplayer_denied');
}
variable_del('jplayer_protected');
}