function acquia_lift_page_variation_get_path in Acquia Lift Connector 7
Gets the page for the variations within a variation set.
Assumption: All page variations are on the same path for a single variation set.
1 call to acquia_lift_page_variation_get_path()
- acquia_lift_personalize_agent_page_alter in ./
acquia_lift.module - Implements hook_personalize_agent_page_alter().
File
- ./
acquia_lift.page_variations.inc, line 167 - acquia_lift.admin.page_variations.inc
Code
function acquia_lift_page_variation_get_path($variation_set_name, $agent_name) {
$option_sets = personalize_option_set_load_multiple(FALSE, array(
'decision_name' => $variation_set_name,
'agent' => $agent_name,
));
$option_set = current($option_sets);
if ($option_set && isset($option_set->data)) {
return isset($option_set->data['pages']) ? $option_set->data['pages'] : '';
}
return '';
}