|
@@ 157-160 (lines=4) @@
|
| 154 |
|
} |
| 155 |
|
|
| 156 |
|
// Apply classes to the form actions and make sure the submit comes first. |
| 157 |
|
if (isset($elements['reply']['actions']['submit'])) { |
| 158 |
|
$elements['reply']['actions']['submit']['#attributes']['class'][] = 'action-item-primary'; |
| 159 |
|
$elements['reply']['actions']['submit']['#weight'] = 0; |
| 160 |
|
} |
| 161 |
|
if (isset($elements['reply']['actions']['cancel'])) { |
| 162 |
|
$elements['reply']['actions']['cancel']['#attributes']['class'][] = 'action-item'; |
| 163 |
|
$elements['reply']['actions']['cancel']['#weight'] = 1; |
|
@@ 161-164 (lines=4) @@
|
| 158 |
|
$elements['reply']['actions']['submit']['#attributes']['class'][] = 'action-item-primary'; |
| 159 |
|
$elements['reply']['actions']['submit']['#weight'] = 0; |
| 160 |
|
} |
| 161 |
|
if (isset($elements['reply']['actions']['cancel'])) { |
| 162 |
|
$elements['reply']['actions']['cancel']['#attributes']['class'][] = 'action-item'; |
| 163 |
|
$elements['reply']['actions']['cancel']['#weight'] = 1; |
| 164 |
|
} |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
/** |