protected function DrupalDefaultEntityController::filterId in Drupal 7
Callback for array_filter that removes non-integer IDs.
File
- includes/
entity.inc, line 256
Class
- DrupalDefaultEntityController
- Default implementation of DrupalEntityControllerInterface.
Code
protected function filterId($id) {
return is_numeric($id) && $id == (int) $id;
}