3

Is there a function in Drupal-7 that looks or searches for nodes that match some criteria (e.g. promoted nodes, published nodes, nodes of a specific content type), rather than using Views?

1
  • There isn't a single core function that can replace Views.
    – apaderno
    Jun 16 '11 at 0:01
4

The closest thing that you get is EntityFieldQuery, which will allow you to construct a query that will yield the nodes that match the conditions.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.