You are here

function fonts_com_unknown_to_array in @font-your-face 7.2

Returns an array, regardless of input.

8 calls to fonts_com_unknown_to_array()
fonts_com_get_all_filter_choices in modules/fonts_com/api.inc
Gets choices for all filter given current values.
fonts_com_get_all_fonts in modules/fonts_com/api.inc
Gets a list of all fonts, in given range.
fonts_com_get_domains_in_project in modules/fonts_com/api.inc
Gets list of domains in a given project.
fonts_com_get_filter_choices in modules/fonts_com/api.inc
Gets choices for filter.
fonts_com_get_fonts_in_project in modules/fonts_com/api.inc
Gets list of fonts in a given project.

... See full list

File

modules/fonts_com/api.inc, line 792
API functions.

Code

function fonts_com_unknown_to_array($unknown) {
  if (is_array($unknown)) {
    return $unknown;
  }

  // if
  return array(
    $unknown,
  );
}