function acquia_lift_goal_types_ui in Acquia Lift Connector 7.2
Helper function to return a list of goal type metadata.
Return value
array An array for each goal type available wit the following keys:
- title: A title for the type of goal
- description: A brief description
- logo: a themed image that can be used to represent the goal type
2 calls to acquia_lift_goal_types_ui()
- acquia_lift_goal_create_modal_callback in ./
acquia_lift.admin.unibar.inc - Page callback to create a new goal by selecting the type of goal to create.
- acquia_lift_personalize_campaign_wizard_goals_alter in ./
acquia_lift.admin.wizard.inc - Alter the goals form.
File
- ./
acquia_lift.ui.inc, line 183 - acquia_lift.ui.inc Provides functions needed for the front-end UI.
Code
function acquia_lift_goal_types_ui() {
$path = drupal_get_path('module', 'acquia_lift');
return array(
'existing' => array(
'title' => t('Predefined goal'),
'description' => t('Visitor actions that are already defined, such as signing in or submitting a form.'),
'path' => 'admin/structure/acquia_lift/goal/add/existing',
'logo' => theme('image', array(
'path' => $path . '/images/goal-type-predefined.png',
'alt' => t('Pre-existing goal'),
'title' => t('Select this option to create a goal from a pre-existing visitor action.'),
)),
),
'element' => array(
'title' => t('New element goal'),
'description' => t('Visitor actions that involve clicking a link, hovering over a link, or submitting a form.'),
'path' => 'admin/structure/visitor_actions/add-in-context',
'logo' => theme('image', array(
'path' => $path . '/images/goal-type-element.png',
'alt' => t('Element goal'),
'title' => t('Select this option to create an element goal.'),
)),
),
'page' => array(
'title' => t('New page goal'),
'description' => t('Visitor actions for a specific webpage that involve viewing, scrolling to the bottom of, or staying for a set timeframe.'),
'path' => 'admin/structure/acquia_lift/goal/add/page',
'logo' => theme('image', array(
'path' => $path . '/images/goal-type-page.png',
'alt' => t('Page goal'),
'title' => t('Select this option to create a page goal.'),
)),
),
);
}