You are here

function tagadelic_vocs_load in Tagadelic 6

Same name and namespace in other branches
  1. 7 tagadelic.module \tagadelic_vocs_load()

Menu wildcard callback.

File

./tagadelic.module, line 106

Code

function tagadelic_vocs_load($vocs) {
  $parsed_vocs = array();
  if (is_numeric($vocs)) {
    $parsed_vocs = array(
      $vocs,
    );
  }
  elseif (preg_match('/^([0-9]+,){1,5}[0-9]+$/', $vocs)) {
    $parsed_vocs = explode(',', $vocs);
  }
  return $parsed_vocs;
}