function acquia_lift_personalize_agent_type in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift.module \acquia_lift_personalize_agent_type()
Implements hook_personalize_agent_type().
File
- ./
acquia_lift.module, line 653 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_personalize_agent_type() {
$info = array();
$account_info = acquia_lift_get_account_info();
// Only return plugin info if account has been setup. If not an
// exception is thrown. Not to mention it's extremely confusing if it's the
// only personalize_agent_type available.
if (!empty($account_info)) {
$path = drupal_get_path('module', 'acquia_lift') . '/plugins/agent_types';
foreach (acquia_lift_get_agent_types() as $type_name => $handler) {
$info[$type_name] = array(
'path' => $path,
'handler' => $handler,
);
}
}
return $info;
}