function acquia_lift_agent_verification_cache_get in Acquia Lift Connector 7
Helper function to read the current agent's verification status from cache.
@result bool True if agent is verified, false if not.
Parameters
string $agent_name: The machine name of the agent to get verification for.
1 call to acquia_lift_agent_verification_cache_get()
- acquia_lift_get_campaign_details in ./acquia_lift.module 
- Generate an array of campaign settings that are currently configured. This administrative information is used for navigation and campaign management.
File
- ./acquia_lift.module, line 3098 
- acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_agent_verification_cache_get($agent_name) {
  $verification =& drupal_static(__FUNCTION__);
  if (!isset($verification)) {
    $cache = cache_get(ACQUIA_LIFT_AGENT_VERIFY_CACHE);
    if ($cache) {
      $verification = $cache->data;
    }
    else {
      $verification = array();
    }
  }
  if (!isset($verification[$agent_name])) {
    $verification[$agent_name] = personalize_verify_agent($agent_name, FALSE);
    cache_set(ACQUIA_LIFT_AGENT_VERIFY_CACHE, $verification);
  }
  return $verification[$agent_name];
}