You are here

function tagadelic_vocs_load in Tagadelic 7

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

Menu wildcard loader.

File

./tagadelic.module, line 92

Code

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