Commit 42490d9c authored by catch's avatar catch
Browse files

Issue #1850182 by Bojhan, swentel: Mark primary buttons in Structure blue.

parent 936cbb91
......@@ -173,6 +173,7 @@ function block_admin_display_form($form, &$form_state, $blocks, $theme, $block_r
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save blocks'),
'#button_type' => 'primary',
);
return $form;
......@@ -507,6 +508,7 @@ function block_admin_configure($form, &$form_state, $module, $delta) {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save block'),
'#button_type' => 'primary',
);
return $form;
......
......@@ -73,7 +73,7 @@ function forum_form_forum($form, &$form_state, $edit = array()) {
$form['vid'] = array('#type' => 'hidden', '#value' => config('forum.settings')->get('vocabulary'));
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'), '#button_type' => 'primary');
if ($edit['tid']) {
$form['actions']['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
$form['tid'] = array('#type' => 'hidden', '#value' => $edit['tid']);
......@@ -187,7 +187,8 @@ function forum_form_container($form, &$form_state, $edit = array()) {
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save')
'#value' => t('Save'),
'#button_type' => 'primary',
);
if ($edit['tid']) {
$form['actions']['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
......
......@@ -95,6 +95,7 @@ function menu_overview_form($form, &$form_state, $menu) {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
'#button_type' => 'primary',
);
}
else {
......@@ -407,7 +408,7 @@ function menu_edit_item($form, &$form_state, $type, $item, $menu) {
'#default_value' => $item['weight'],
'#description' => t('Optional. In the menu, the heavier links will sink and the lighter links will be positioned nearer the top.'),
);
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'), '#button_type' => 'primary');
return $form;
}
......@@ -529,6 +530,7 @@ function menu_edit_menu($form, &$form_state, $type, $menu = array()) {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
'#button_type' => 'primary',
);
// Only custom menus may be deleted.
$form['actions']['delete'] = array(
......
......@@ -3196,6 +3196,7 @@ function system_config_form($form, &$form_state) {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
'#button_type' => 'primary',
);
// Add system_config_form_submit() to output a consistent confirmation
......
......@@ -51,7 +51,7 @@ function taxonomy_overview_vocabularies($form) {
// vocabulary exists.
if (count($vocabularies) > 1) {
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'));
$form['actions']['submit'] = array('#type' => 'submit', '#value' => t('Save'), '#button_type' => 'primary');
}
elseif (isset($vocabulary)) {
unset($form[$vocabulary->vid]['weight']);
......@@ -312,7 +312,8 @@ function taxonomy_overview_terms($form, &$form_state, Vocabulary $vocabulary) {
$form['actions'] = array('#type' => 'actions', '#tree' => FALSE);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save')
'#value' => t('Save'),
'#button_type' => 'primary',
);
$form['actions']['reset_alphabetical'] = array(
'#type' => 'submit',
......
......@@ -2031,6 +2031,7 @@ function views_ui_admin_settings_advanced() {
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
'#button_type' => 'primary',
);
$form['#submit'][] = 'views_ui_admin_settings_advanced_submit';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment