You are here

function fontscom_api_unknown_to_array in @font-your-face 8.3

Returns an array, regardless of input.

Parameters

mixed $unknown: A parameter of unknown type.

Return value

array If parameter is already an array, return as-is. Otherwise, return array with param as first value.

1 call to fontscom_api_unknown_to_array()
fontscom_api_get_projects in modules/fontscom_api/fontscom_api.module
Returns list of projects.

File

modules/fontscom_api/fontscom_api.module, line 329
Fonts.com API module file.

Code

function fontscom_api_unknown_to_array($unknown) {
  if (is_array($unknown)) {
    return $unknown;
  }
  return [
    $unknown,
  ];
}