Skip to content

Instantly share code, notes, and snippets.

@dsnopek
Created February 10, 2014 18:51
Show Gist options
  • Save dsnopek/8921849 to your computer and use it in GitHub Desktop.
Save dsnopek/8921849 to your computer and use it in GitHub Desktop.
/**
* Implements hook_field_default_field_instance_alter().
*
* Add digests if message_digest is enabled.
*/
function oa_messages_field_default_field_instance_alter(&$items) {
if (module_exists('message_digest')) {
// Replace '...' with actual values.
$items[...] = array(
// ...
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment