How to show the author of Blocked users's Content as anonymous in Drupal 7? I have a Content type Board. All authenticated users can add boards. when i displaying the Board's Nodes i am also showing the author name. All going good.
But when a user delete his account i set his status as blocked.
If a user has been blocked then i want to show Anonymous author on board's node created by that blocked user.
I searched here and there but could not find solution. Any Help please
Thanks in Advance.
You may use

function theme_username($variables)


https://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_username/7.x

$username = $variables['name'];

Check if user blocked 

$variables['name'] = 'anonymous';