comunic/developer/vendor/rockettheme/toolbox/Blueprints/tests/helper.php

9 lines
181 B
PHP
Raw Permalink Normal View History

2016-11-19 11:08:12 +00:00
<?php
function blueprint_data_option_test(array $param = null, $sort = false)
{
if ($sort) {
asort($param);
}
return $param ?: ['yes' => 'Yes', 'no' => 'No'];
}