function syntaxhighlighter_update_7001 in Syntax Highlighter 7
Same name and namespace in other branches
- 7.2 syntaxhighlighter.install \syntaxhighlighter_update_7001()
Rename 'syntaxhighlighter_off_pages' variable to 'syntaxhighlighter_pages'.
File
- ./
syntaxhighlighter.install, line 62 - Syntax highlighter module installation file.
Code
function syntaxhighlighter_update_7001() {
// test first to see if the 'syntaxhighlighter_pages' exist, if so
// don't do the update because it must have been updated in the 6.x version
if (variable_get('syntaxhighlighter_off_pages', '#+#') != '#+#') {
variable_set('syntaxhighlighter_pages', variable_get('syntaxhighlighter_off_pages', "admin\nadmin/*\nuser\nuser/*\nimce\nimce/*\n"));
variable_del('syntaxhighlighter_off_pages');
return t('The variable \'syntaxhighlighter_off_pages\' was renamed to \'syntaxhighlighter_pages\'');
}
}