Created
June 7, 2015 08:40
-
-
Save amitaibu/7ff16a9765832cc9f046 to your computer and use it in GitHub Desktop.
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
$query = new EntityFieldQuery(); | |
$result = $query | |
->entityCondition('entity_type', 'node') | |
->entityCondition('bundle', 'ci_build') | |
->propertyOrderBy('nid') | |
->execute(); | |
$nodes = node_load_multiple(array_keys($result['node'])); | |
dpm(count($nodes)); | |
foreach ($nodes as $node) { | |
node_save($node); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment