Move presets to json objects

This commit is contained in:
Brian Miyaji
2014-05-02 17:27:18 +10:00
parent 6ce1953dc2
commit 388817111a
22 changed files with 438 additions and 365 deletions

View File

@@ -2407,15 +2407,6 @@ function sp_get_sport_presets() {
));
}
function sp_get_sport_options() {
$sports = sp_get_sport_presets();
$options = array();
foreach ( $sports as $slug => $data ):
$options[ $slug ] = $data['name'];
endforeach;
return $options;
}
/**
* Get an array of text options per context.
* @return array