function acquia_lift_get_agent_types in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.module \acquia_lift_get_agent_types()
Returns the agent types this module provides.
Return value
array An associative array with agent plugin names as keys and class names as values.
4 calls to acquia_lift_get_agent_types()
- acquia_lift_batch_sync_campaigns in ./
acquia_lift.batch.inc - Batch syncs all campaigns to Lift.
- acquia_lift_form_field_ui_field_edit_form_alter in ./
acquia_lift.module - Implements hook_form_FORM_ID_alter().
- acquia_lift_personalize_agent_type in ./
acquia_lift.module - Implements hook_personalize_agent_type().
- drush_acquia_lift_campaign_sync in ./
acquia_lift.drush.inc - Syncs the Acquia Lift Campaigns.
File
- ./
acquia_lift.module, line 487 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_get_agent_types() {
$types = array(
'acquia_lift' => array(
'class' => 'AcquiaLiftAgent',
'file' => 'AcquiaLiftAgent.inc',
),
'acquia_lift_simple_ab' => array(
'class' => 'AcquiaLiftSimpleAB',
'file' => 'AcquiaLiftAgent.inc',
),
);
// Not exposing this agent type for now as there is no decent workflow for
// using it.
if (variable_get('acquia_lift_target_enabled', FALSE)) {
$types['acquia_lift_target'] = array(
'class' => 'AcquiaLiftTarget',
'file' => 'AcquiaLiftTarget.inc',
);
}
return $types;
}