This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Search and replace using Views Bulk Operations | |
*/ | |
$node = node_load($entity->nid); //load node form entity supplied by VBO | |
$haystack = $node->body['und'][0]['value']; //set node body to be haystack | |
$search = "Office of International Students and Scholars"; //Set the string to search for | |
$replace = "International Student & Scholar Services"; //String to replace target |