Filtering works only for flexinode modules, as the API calls need to be updated. The last elseif clause in event_page() needs to be:
if ($types) {
// The '+' character in a query string may be parsed as ' '.
$types = preg_split('/[+ ]/', $types);
foreach ($types as $type) {
if (is_numeric($type)) {
$ctype = module_invoke('flexinode', 'load_content_type', $type);
if ($ctype->name) {
$temp[$ctype->name] = 'flexinode-'. $type;
$filter[] = $ctype->name;
}
}
elseif (substr($type, 0, 10) == 'flexinode-') {
$ctype = module_invoke('flexinode', 'load_content_type', substr($type, 10));
if ($ctype->name) {
$temp[$ctype->name] = $type;
$filter[] = $ctype->name;
}
}
elseif (array_key_exists($type, node_get_types())) {
$node_types = node_get_types();
$temp[$node_types[$type]] = $type;
$filter[] = $node_types[$type];
}
}
Comments
Comment #1
drewish commentedwould you mind posting this as a patch? it makes it much easier to see what's changing
Comment #2
rubenk commentedSee issue http://drupal.org/node/66694
Boy. I wish someone had done this way back when ;-)
Comment #3
killes@www.drop.org commentedThis version of event.module is no longer supported. Please update your site. If the issue is still valid, don't hesitate to re-open it against a more recent version.