From 900fc3facc5f9d3f9cae4869693488c9ce955188 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Tue, 14 Nov 2017 15:03:33 -0500 Subject: [PATCH] Style the "Group" VBO action button. --- themes/farm_theme/template.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/farm_theme/template.php b/themes/farm_theme/template.php index 6b8966262..bf66804ad 100755 --- a/themes/farm_theme/template.php +++ b/themes/farm_theme/template.php @@ -149,13 +149,16 @@ function farm_theme_views_bulk_operations_form_alter(&$form, &$form_state, $vbo) // Move VBO buttons to the bottom. $form['select']['#weight'] = 100; - // Move the "Assign" and "Clone" actions to the end of the list. + // Move the "Assign", "Clone", and "Group" actions to the end of the list. if (!empty($form['select']['action::farm_log_assign_action'])) { $form['select']['action::farm_log_assign_action']['#weight'] = 100; } if (!empty($form['select']['action::log_clone_action'])) { $form['select']['action::log_clone_action']['#weight'] = 100; } + if (!empty($form['select']['action::farm_group_asset_membership_action'])) { + $form['select']['action::farm_group_asset_membership_action']['#weight'] = 100; + } // If we are viewing a VBO config form, add Javascript that will hide // everything on the page except for the form. @@ -182,6 +185,7 @@ function farm_theme_bootstrap_colorize_text_alter(&$texts) { // Colorize VBO action buttons. $texts['matches'][t('Move')] = 'default'; + $texts['matches'][t('Group')] = 'warning'; $texts['matches'][t('Done')] = 'success'; $texts['matches'][t('Not Done')] = 'danger'; $texts['matches'][t('Reschedule')] = 'warning'; @@ -196,6 +200,7 @@ function farm_theme_bootstrap_iconize_text_alter(&$texts) { // Iconize VBO action buttons. $texts['matches'][t('Move')] = 'move'; + $texts['matches'][t('Group')] = 'bookmark'; $texts['matches'][t('Done')] = 'check'; $texts['matches'][t('Not Done')] = 'unchecked'; $texts['matches'][t('Reschedule')] = 'calendar';