materio_didactique.pages.inc 478 B

1234567891011121314151617
  1. <?php
  2. function materio_didactique_get_page(){
  3. $query = new EntityFieldQuery;
  4. $query
  5. ->entityCondition('entity_type', 'node')
  6. ->propertyCondition('status', 1)
  7. ->entityCondition('bundle', array('didactique'))
  8. ->fieldCondition('field_displayed_in_whoweare', 'value', 1)
  9. ->fieldOrderBy('field_weight', 'value', 'ASC');
  10. $result = $query->execute();
  11. // dsm($result, '$result');
  12. return theme('materio_didactique_page', array('items' => $result['node']));
  13. }