PHP_START
function getPeopleBySpecialty() {
= new EntityFieldQuery();
(‘entity_type’, ‘node’)
->entityCondition(‘bundle’, ‘person’)
->propertyCondition(‘status’, NODE_PUBLISHED)
->fieldCondition(‘field_specialties’, ‘tid’, )
->fieldOrderBy(‘field_c_last_name’, ‘value’, ‘ASC’);
= ();
= array();
if(\[‘node’\]’ != null) {
= array_keys(\[‘node’\]’);
= entity_load(‘node’, );
}
return ;
}
= array(‘Equine Medicine’ => getPeopleBySpecialty(73), ‘Equine Surgery’ => getPeopleBySpecialty(74), ‘Equine Field Services’ => getPeopleBySpecialty(79));
foreach( as => ){
echo “
Name | Phone | Room | ||
---|---|---|---|---|
“; echo ; echo “ |
, |
“;
}
PHP_END