According to the documentation (https://wiki.civicrm.org/confluence/display/CRMDOC/Pseudoconstant+(option+list)+Reference) I should be able to pass a context to an api.getoptions call in order retrieve both enabled and disabled options for a field. However, it doesn't seem to be working. In fact, swapping out different contexts has no apparent effect on what is returned by the api call. Am I missing something?
$opts = civicrm_api3('contribution', 'getoptions', array( 'field' => "custom_5", 'context' => 'get' ));