Fix failure to recognize CamelCase entity names CRM-11817
[civicrm-core.git] / api / api.php
index b18318b96708d3e35b85564eab0307c32975dce7..0998b5c157720117e1f6d31b8a6777b8917564f3 100644 (file)
@@ -517,6 +517,8 @@ function _civicrm_api_replace_variables($entity, $action, &$params, &$parentResu
  *
  * @param string $entity entity name in various formats e.g. Contribution, contribution, OptionValue, option_value, UFJoin, uf_join
  * @return string $entity entity name in underscore separated format
+ *
+ * FIXME: Why isn't this called first thing in civicrm_api wrapper?
  */
 function _civicrm_api_get_entity_name_from_camel($entity) {
   if ($entity == strtolower($entity)) {