You are here

function _datatables_get_id in DataTables 7.2

Same name and namespace in other branches
  1. 6 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 398
Provides integration of the jQuery DataTables plugin

Code

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