Store token replacement values in the database rather than tokens themselves Is there a way to store the token replacement values of tokens put in a form field in the database rather than the tokens themselves? 

I have a text field in a custom content type that has a token as default value (using Token Filter), [current-user:uid], so on node creation the replacement value is inserted into the node. In the database, it's stored as '[current-user:uid]', rather than as the replacement value. What is one way of storing the replacement value rather than the token string in that table?
The gist of it is to execute token_replace in a suitable location. Here's an example.

hook_node_presave($node) {
  if ($node-&gt;type == 'page') {
    $replaced_text =  token_replace($node-&gt;field_with_replacements['und'][0]['value']);
    $node-&gt;field_with_replacements['und'][0]['value'] = $replaced_text;
  }
}