Skip to content

Instantly share code, notes, and snippets.

@johnrobertwilson
Created April 27, 2012 20:15
Show Gist options
  • Save johnrobertwilson/2512576 to your computer and use it in GitHub Desktop.
Save johnrobertwilson/2512576 to your computer and use it in GitHub Desktop.
advisory
$advisory_nids = db_query('SELECT nid FROM node WHERE type = "advisory_team_bio" OR type = "advisory_group_organization")->fetchCol();
$advisory_nodes = node_load_multiple($advisory_nids);
foreach ($advisory_nodes as $advisory_node) {
node_save($advisory_node);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment