function coder_upgrade_convert_taxonomy_synonyms in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/conversions/call.inc \coder_upgrade_convert_taxonomy_synonyms()
Comments out taxonomy synonym functions.
1 call to coder_upgrade_convert_taxonomy_synonyms()
- coder_upgrade_upgrade_call_alter in coder_upgrade/
conversions/ call.inc - Implements hook_upgrade_call_alter().
File
- coder_upgrade/
conversions/ call.inc, line 2978 - Provides conversion routines applied to function calls.
Code
function coder_upgrade_convert_taxonomy_synonyms(&$item) {
// Create helper objects.
$editor = PGPEditor::getInstance();
// Comment out function.
// Replace function call with default return value (so code will theoretically still run).
$item
->insertStatementBefore($editor
->commentToStatement('// TODO The taxonomy synonym functionality has been removed.'));
$item
->insertStatementBefore($editor
->commentToStatement('// To replace this functionality, you can add a synonym field to your vocabulary.'));
$temp = $item
->toString();
$item = $editor
->expressionToStatement('array() /*' . $temp . '*/');
}