function theme_acquia_lift_create_type_change in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 theme/acquia_lift.theme.inc \theme_acquia_lift_create_type_change()
Theme function to change the type of form shown in the campaign creation process.
Parameters
$variables: An associative array of variables including:
- type: The title of the type of form to display
- change_link: A change link to change the type shown
- id: Optional an id to include in the markup.
2 theme calls to theme_acquia_lift_create_type_change()
- acquia_lift_campaign_type_create_form in ./
acquia_lift.admin.unibar.inc - Form builder function to create a new campaign in the modal process of a specific type.
- acquia_lift_goal_type_create_form in ./
acquia_lift.admin.unibar.inc - Form builder function to create a new goal in the modal process of a specific type.
File
- theme/
acquia_lift.theme.inc, line 335 - acquia_lift.theme.inc Provides theme functions for Acquia Lift.
Code
function theme_acquia_lift_create_type_change($variables) {
$html = '<span';
if (!empty($variables['id'])) {
$html .= ' id="' . $variables['id'] . '"';
}
$html .= ' class="acquia-lift-form-type">' . $variables['type'] . '</span> ' . $variables['change_link'];
return $html;
}