Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292199

Remove theme_checkboxes() and call theme('container') instead

$
0
0

Problem/Motivation

There are way too many theme functions / template files in core. Some are similar (if not identical) and should be consolidated.

Proposed resolution

We have two options:

  1. Remove theme_checkboxes() and call theme('container') instead (build a render array with '#theme' => 'container')
  2. If we really do need a separate preprocess function for this, let's use theme('container__checkboxes') instead of theme('container') and add all our preprocess magic into template_preprocess_container__checkboxes()

Remaining tasks

Decide which of the 2 options above to pursue, and do it.

User interface changes

None

API changes

Removal of theme_checkboxes

#2041825: Remove theme_radios() and call theme('container') instead
#1819284: [meta] Consolidate all form element container templates, and add theme_hook_suggestions


Viewing all articles
Browse latest Browse all 292199

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>