summaryrefslogtreecommitdiff
path: root/themes/seven/template.php
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 13:37:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 13:37:34 +0000
commit3e8344b5c4bc3e793f822c215cdb9c4b1c2c7db4 (patch)
tree8919db42fd0b93e96d47c4c678f75e9a3d8c5f2f /themes/seven/template.php
parent45e0f774bdff5c74bc1b04c7d3834f85d5f5b6a4 (diff)
downloadbrdo-3e8344b5c4bc3e793f822c215cdb9c4b1c2c7db4.tar.gz
brdo-3e8344b5c4bc3e793f822c215cdb9c4b1c2c7db4.tar.bz2
#560944 follow-up by brandonojc, seutje, and Davy Van Den Bremt: Move collapsible fieldset logic from theme_fieldset() hook to form_process_fieldset().
Diffstat (limited to 'themes/seven/template.php')
-rw-r--r--themes/seven/template.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/themes/seven/template.php b/themes/seven/template.php
index 1bba3a979..856beeb38 100644
--- a/themes/seven/template.php
+++ b/themes/seven/template.php
@@ -77,19 +77,5 @@ function seven_tablesort_indicator($variables) {
*/
function seven_fieldset($variables) {
$element = $variables['element'];
- if (!empty($element['#collapsible'])) {
- drupal_add_js('misc/collapse.js');
-
- if (!isset($element['#attributes']['class'])) {
- $element['#attributes']['class'] = array();
- }
-
- $element['#attributes']['class'][] = 'collapsible';
- if (!empty($element['#collapsed'])) {
- $element['#attributes']['class'][] = 'collapsed';
- }
- }
- $element['#attributes']['id'] = $element['#id'];
-
return '<fieldset' . drupal_attributes($element['#attributes']) . '>' . ($element['#title'] ? '<legend><span>' . $element['#title'] . '</span></legend>' : '') . (isset($element['#description']) && $element['#description'] ? '<div class="fieldset-description">' . $element['#description'] . '</div>' : '') . (!empty($element['#children']) ? $element['#children'] : '') . (isset($element['#value']) ? $element['#value'] : '') . "</fieldset>\n";
}