Closed (fixed)
Project:
Entity API
Version:
7.x-1.0-rc1
Component:
Code - misc
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2012 at 00:18 UTC
Updated:
28 May 2012 at 15:42 UTC
the function entity_metadata_status_options_list returns an array resolving node status to a string. The return values are reversed so a node with status==0 will receive a translated string of Published, which is not correct.
Reversing the array fixes it. Here is the correct function
function entity_metadata_status_options_list() {
return array(
1 => t('Published'),
0 => t('Unpublished'),
);
}
Comments
Comment #1
dpovshed commentedI am sure this one was fixed and committed.
In current dev version there are used constants, and order is correct.
NODE_PUBLISHED / NODE_NOT_PUBLISHED