sammarks / ablecore

A library for Drupal developers.
MIT License
5 stars 4 forks source link

Add current() function to the Node class. #9

Closed sammarks closed 10 years ago

sammarks commented 10 years ago

The function will return the current node based on the page the user is on. This function will be cached using Drupal static caching.

sammarks commented 10 years ago

The node class will use menu_get_object and load it in an Able Core Node wrapper.

In the future when we develop the generic Entity class, we'll want to look at using menu_get_object for a generic current() function.