You are here

function acquia_lift_profiles_get_server_side_actions in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift_profiles/acquia_lift_profiles.module \acquia_lift_profiles_get_server_side_actions()

Retrieves all unprocessed actions that have been fired server-side.

Return value

an array of actions or NULL.

1 call to acquia_lift_profiles_get_server_side_actions()
acquia_lift_profiles_process_server_side_actions in acquia_lift_profiles/acquia_lift_profiles.module
Adds the list of actions to Drupal.settings.

File

acquia_lift_profiles/acquia_lift_profiles.module, line 626
acquia_lift_profiles.module Provides Acquia Lift Profiles integration.

Code

function acquia_lift_profiles_get_server_side_actions() {
  if (isset($_SESSION['acquia_lift_profiles_actions'])) {
    $actions = array();
    foreach ($_SESSION['acquia_lift_profiles_actions'] as $action_name => $contexts) {
      foreach ($contexts as $context) {
        $actions[$action_name][] = unserialize($context);
      }
    }
    return $actions;
  }
  return NULL;
}