This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_entity_property_info(). | |
*/ | |
function dosomething_campaign_entity_property_info() { | |
$info = array(); | |
$properties = &$info['campaign']['properties']; | |
$properties['id'] = array( | |
'label' => t("Campaign ID"), | |
'type' => 'integer', | |
'description' => t("The unique campaign ID."), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Wrapper class for extending MemCacheDrupal to support flushing a page's cache. | |
require_once DRUPAL_ROOT . '/includes/cache.inc'; | |
require_once DRUPAL_ROOT . '/sites/all/modules/memcache/memcache.inc'; | |
class FlushPageCacheMemCacheDrupal extends MemCacheDrupal { | |
function get($cid) { | |
// Handle flush page cache request by deleting the cached object and returning FALSE. | |
if (function_exists('flush_page_cache_requested') && flush_page_cache_requested()) { | |
return FALSE; | |
} |
NewerOlder