function acquia_lift_get_grouped_context_options in Acquia Lift Connector 7.3
2 calls to acquia_lift_get_grouped_context_options()
File
- ./
acquia_lift.module, line 243 - acquia_lift.module Provides Acquia Lift Profiles integration.
Code
function acquia_lift_get_grouped_context_options() {
module_load_include('inc', 'acquia_lift', 'acquia_lift.context');
$context_options = _acquia_lift_get_context_options();
foreach ($context_options as $context_type => $options) {
foreach ($options as $code => $info) {
$option_name = $context_type . ACQUIA_LIFT_ADMIN_SEPARATOR . $code;
if (isset($info['group'])) {
$group = $info['group'];
if (!isset($groups[$group])) {
$groups[$group] = array();
}
$groups[$group][$option_name] = $info['name'];
}
else {
$groups['Miscellaneous'][$option_name] = $info['name'];
}
}
}
return $groups;
}