EllisLab/CodeIgniter — pull request #2881 by brenjt (2014-02-14 19:22:09+00:00)
Title: form_dropdown array as first param fix

Form_dropdown was previously incompatible with most other form_ helper methods. This patch fixes that and now allows arrays to be passed in just as the other functions support:
```
$type_ids = array(1,2,3,4,5)
$dropdown = array(
'name' => 'product[type_id]',
'id' => 'product_type_id',
'class' => 'form-control',
'selected' => $this->form_validation->set_value('product[type_id]', $product->type_id),
'options' => $type_ids,
);

echo form_dropdown($dropdown);
```

Will produce:
```

1

2

3

4

5

```