You are here

function _datatables_get_id in DataTables 6

Same name and namespace in other branches
  1. 7.2 datatables.module \_datatables_get_id()
  2. 7 datatables.module \_datatables_get_id()

Returns an unique DataTable id

2 calls to _datatables_get_id()
template_preprocess_datatables_view in ./datatables.module
Display a view as a DataTable style.
theme_datatable in ./datatables.module
Return a themed DataTable.

File

./datatables.module, line 304
Provides integration of the jQuery DataTables plugin

Code

function _datatables_get_id() {
  static $datatable_id;
  return 'datatable-' . ++$datatable_id;
}