You are here

function cacheflush_load in CacheFlush 7.3

Same name and namespace in other branches
  1. 8 modules/cacheflush_entity/cacheflush_entity.module \cacheflush_load()

Loads entity by ID.

Parameters

mixed $id: The entity ID to be loaded.

Return value

object The entity object or FALSE if not found.

4 calls to cacheflush_load()
CacheFlushEntityTest::testCrudFunctions in modules/cacheflush_entity/cacheflush_entity.test
Tests CRUD functions for cacheflush entity.
cacheflush_ui_access in modules/cacheflush_ui/cacheflush_ui.module
Determines whether the given user can perform actions on cacheflush entity.
_cacheflush_clear_preset in ./cacheflush.api.inc
Based on settings decide witch clear cache function to be called.
_cacheflush_ui_mass_update_helper in modules/cacheflush_ui/includes/cacheflush_ui.class.inc
Updates individual presets when fewer than 10 are queued.
1 string reference to 'cacheflush_load'
cacheflush_entity_entity_info in modules/cacheflush_entity/cacheflush_entity.module
Implements hook_entity_info().

File

modules/cacheflush_entity/cacheflush_entity.module, line 81
Cacheflush entity to store presets.

Code

function cacheflush_load($id) {
  $list = cacheflush_load_multiple(array(
    $id,
  ));
  return $list ? reset($list) : FALSE;
}