Index: modules/system/system.api.php =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.api.php,v retrieving revision 1.20 diff -u -p -r1.20 system.api.php --- modules/system/system.api.php 26 Feb 2009 07:30:28 -0000 1.20 +++ modules/system/system.api.php 8 Mar 2009 03:08:21 -0000 @@ -1439,14 +1439,17 @@ function hook_schema_alter(&$schema) { * * @see hook_query_TAG_alter() * @see node_query_node_access_alter() - * + * @see QueryAlterableInterface + * @see SelectQueryInterface * @param $query * A Query object describing the composite parts of a SQL query. * @return * None. */ function hook_query_alter(QueryAlterableInterface $query) { - + if ($query->hasTag('micro_limit')) { + $query->range(0, 2); + } } /** @@ -1454,6 +1457,8 @@ function hook_query_alter(QueryAlterable * * @see hook_query_alter() * @see node_query_node_access_alter() + * @see QueryAlterableInterface + * @see SelectQueryInterface * * @param $query * An Query object describing the composite parts of a SQL query.