function _views_row_insert_last_key in Views Row Insert 8
Same name and namespace in other branches
- 7 views_row_insert.module \_views_row_insert_last_key()
Helper function. Provides last key of the array .
Parameters
array $new_rows: Array of rows.
Return value
string Returns key.
1 call to _views_row_insert_last_key()
- template_preprocess_views_row_insert in ./
views_row_insert.theme.inc - Implements template_preprocess_hook().
File
- ./
views_row_insert.module, line 107 - Contains views_row_insert.module.
Code
function _views_row_insert_last_key(array $new_rows) {
$keys = array_keys($new_rows);
return end($keys);
}