I have used the following code to return the vids of all the playlists associated with a particular program.

$query->entityCondition('entity_type', 'node')
  ->entityCondition('bundle', 'station_playlist')
  ->fieldCondition('field_station_program', 'nid', $nid, '=')
  ->addMetaData('account', user_load(1));

$result = $query->execute();
if (!empty($result['node'])) {
  $node_ids = array_keys($result['node']);
return $node_ids;

The expected result is a list of all the playlists ids; however, this query returns only some of them (mostly the old ones). I have tried using the range feature as well but it does not work. Can someone please help in figuring out where the issue lies? Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.