Active
Project:
Flexinode
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2005 at 19:00 UTC
Updated:
15 Oct 2005 at 10:21 UTC
From http://drupal.org/node/26710
When mailhandler passes content, if the node type is set to flexinode-X, but there is no corresponding ctype_id also set to X, flexinode fails to properly handle it.
If we call a flexinode function and ctype_id is not set but is needed, and type is already set to flexinode-X, make the guess and set ctype_id correctly.
something similar to what node_import already does should work:
function flexinode_node_import_static($type) {
global $user;
$type = explode('-', $type);
if ($type[0] == 'flexinode') {
// Use the current user's information for importing stories.
return array('ctype_id' => $type[1]);
}
}
Comments
Comment #1
Bèr Kessels commentedI am not sure if this can be considered a bug in flexinode, or one in mailhandler. For now, I am marking this a feature request for HEAD.
The HEAD does different typename parsing, so it can be fixed there. We dont add new features to a stable branch.