You are here

function dbtng_example_grouping_list in Examples for Developers 7

This function groups the result set by the specified field and render a list of entries in the database

Related topics

1 string reference to 'dbtng_example_grouping_list'
dbtng_example_menu in dbtng_example/dbtng_example.module
Implements hook_menu().

File

dbtng_example/dbtng_example.module, line 632
This is an example outlining how a module can make use of the new DBTNG database API in Drupal 7.

Code

function dbtng_example_grouping_list() {
  $result = dbtng_example_execute_group_by_select_query();
  return dbtng_example_render_resultset_as_table($result);
}