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

dpovshed’s picture

Status: Active » Closed (fixed)

I 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