joomla/joomla-cms — pull request #1143 by okonomiyaki3000 (2013-05-14 05:02:59+00:00)
Title: Sql as 'option' type for JFormFieldList

Allows you to create `
` tags for `JFormFieldList` or any class that inherits from it which basically function exactly like `JFormFieldSQL`. This essentially makes `JFormFieldSQL` obsolete and adds its functionality to all classes that extend `JFormFieldList`. And, since it's built on top of #1115, that means you can create `checkbox` or `radiobutton` inputs based on SQL.

An example of the `sql` field type from the wiki (http://docs.joomla.org/SQL_form_field_type) looks like this:
```xml

```
But could now be rewritten as:
```xml

```
Which might not seem better except you can also do this:
```xml

```

Also, I've added this:
```xml

```
Which makes it so that the `option`'s query will be used by default but, if there is a query for the specific database driver being used, that one will be used instead.