Add database value in views for entity type user I want to extend the user profile with a rank (a decimal ranging from 500 - 2500), which needs to be updated on a regular basis (10 times per minute) for several users. (it is for http://achtungdiekurve.net/ ) I already implemented it with a seperate table, containing a rank field and implemented a table to show the rankings (http://achtungdiekurve.net/ranks ). 

However, I want to use views to create this table. But I cant seem to alter the entity type user in such a way, that it shows Rank in the views forms. How to do this? My current code:

&lt;?php
function achtung_entity_property_info_alter(&amp;$info) {

  $info["user"]["properties"]["rank"] = array(
    "label" =&gt; t("Rank"),
    "description" =&gt; t("The rank of the user"),
    "type" =&gt; "decimal",
    "getter callback" =&gt; "achtung_get_entity_callback",
    "computed" =&gt; true,
    "entity views field" =&gt; true,
    "query callback" =&gt; "entity_property_query",
  );
  watchdog("ACHTUNG entity info alter", "&lt;pre&gt;".print_r($info, true)."&lt;/pre&gt;");
  return $info;

}
function achtung_get_entity_callback($account, $options, $name, $entity_type) {
  watchdog("ACHTUNG entity info callback", "&lt;pre&gt;".print_r($account, true)."&lt;/pre&gt;");
  return 2;
}
?&gt;
Although I haven't had a chance to play with it myself just yet, assuming everything else is implemented correctly, it seems as though using EntityFieldQuery Views Backend as your Views backend should make your new Rank field visible to Views.