You are here

function acquia_lift_personalize_goal_presave in Acquia Lift Connector 7.2

Implements hook_personalize_goal_presave().

File

./acquia_lift.module, line 825
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_personalize_goal_presave($goal) {
  $agent = personalize_agent_load($goal->agent);
  module_load_include('inc', 'acquia_lift', 'acquia_lift.admin');
  if (!acquia_lift_target_definition_changes_allowed($agent)) {
    throw new PersonalizeException(t('Goals cannot be modified until the personalization is paused.'));
  }
}