function acquia_lift_is_testing_agent in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift.module \acquia_lift_is_testing_agent()
Returns whether or not the passed in agent is a testing agent.
Parameters
$agent: An object representing the agent.
Return value
bool TRUE if the object is an agent whose plugin is one of the testing plugins provided by this module, FALSE otherwise.
3 calls to acquia_lift_is_testing_agent()
- 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.
- acquia_lift_get_sync_operations_for_agent in ./
acquia_lift.batch.inc - Returns all operations required to sync the testing components of an agent.
- acquia_lift_personalize_agent_delete in ./
acquia_lift.module - Implements hook_personalize_agent_delete().
File
- ./
acquia_lift.module, line 624 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_is_testing_agent($agent) {
if (empty($agent)) {
return FALSE;
}
return $agent->plugin == ACQUIA_LIFT_TESTING_AGENT;
}