function acquia_lift_is_targeting_agent in Acquia Lift Connector 7.2
Returns whether or not the passed in agent is a targeting agent.
Parameters
$agent: An object representing the agent.
Return value
bool TRUE if the object is an Acquia Lift targeting agent, FALSE otherwise.
9 calls to acquia_lift_is_targeting_agent()
- acquia_lift_form_personalize_agent_option_sets_form_alter in ./
acquia_lift.module - Implements hook_form_FORM_ID_alter().
- acquia_lift_form_personalize_campaign_wizard_alter in ./
acquia_lift.module - Implements hook_form_FORM_ID_alter().
- acquia_lift_form_personalize_status_change_form_alter in ./
acquia_lift.module - Implements hook_form_FORM_ID_alter().
- acquia_lift_personalize_agent_update_status in ./
acquia_lift.module - Implements hook_personalize_agent_update_status().
- acquia_lift_personalize_option_set_delete in ./
acquia_lift.module - Implements hook_personalize_option_set_delete().
File
- ./
acquia_lift.module, line 639 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_is_targeting_agent($agent) {
if (empty($agent)) {
return FALSE;
}
return $agent->plugin == 'acquia_lift_target';
}