public function unregister($type, $name)
{
$this->bootstrap($type);
$name = trim(strtolower($name));
$item = elgg_extract($name, $GLOBALS['_ELGG']->externals_map[$type]);
if ($item) {
unset($GLOBALS['_ELGG']->externals_map[$type][$name]);
return $GLOBALS['_ELGG']->externals[$type]->remove($item);
}
return false;
}