| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function execute($style_id) |
||
| 18 | { |
||
| 19 | $position = $this->request->variable('position', ''); |
||
| 20 | $width = $this->request->variable('width', ''); |
||
| 21 | |||
| 22 | $column_widths = (array) json_decode($this->config['sitemaker_column_widths'], true); |
||
| 23 | $column_widths[$style_id][$position] = $width; |
||
| 24 | |||
| 25 | // clean up |
||
| 26 | $column_widths[$style_id] = array_filter($column_widths[$style_id]); |
||
| 27 | |||
| 28 | $this->config->set('sitemaker_column_widths', json_encode(array_filter($column_widths))); |
||
| 29 | |||
| 30 | return array(); |
||
| 31 | } |
||
| 33 |