function acquia_lift_option_set_types_ui in Acquia Lift Connector 7.2
Helper function to return a list of option set type metadata.
Return value
array An array for each type of option set available with the following keys:
- title: A title for the type of option set
- description: A brief description
- logo: a themed image that can be used to represent the option set type
- path: the link to create an option set of this type
2 calls to acquia_lift_option_set_types_ui()
- acquia_lift_option_set_add_modal_callback in ./
acquia_lift.admin.unibar.inc - Page callback to create a new option set.
- acquia_lift_personalize_campaign_wizard_variations_alter in ./
acquia_lift.admin.wizard.inc - Alter hook for the variations portions of the campaign wizard.
File
- ./
acquia_lift.ui.inc, line 148 - acquia_lift.ui.inc Provides functions needed for the front-end UI.
Code
function acquia_lift_option_set_types_ui() {
$path = drupal_get_path('module', 'acquia_lift');
return array(
'block' => array(
'title' => t('Drupal blocks'),
'description' => t('This variation style allows you to display personalized content in a Drupal block, wherever it may appear on your website.'),
'logo' => theme('image', array(
'path' => $path . '/images/variation-type-block.png',
'alt' => t('Drupal block'),
'title' => t('Select this option to create a variation set from Drupal content blocks.'),
)),
'path' => 'admin/structure/personalize/variations/personalize-blocks/add',
),
'element' => array(
'title' => t('Webpage elements'),
'description' => t('This variation style allows you to select an item on a webpage and modify its HTML to create new variations of the content.'),
'logo' => theme('image', array(
'path' => $path . '/images/variation-type-element.png',
'alt' => t('Webpage element'),
'title' => t('Select this option to create a variation set from web page elements.'),
)),
'path' => 'admin/structure/personalize/variations/personalize-elements/add',
),
);
}