You are here

function realistic_dummy_content_api_user_insert in Realistic Dummy Content 7

Implements hook_user_insert().

File

api/realistic_dummy_content_api.module, line 49
API code allowing other modules to generate realistic dummy content. See the Realistic Dummy Content module for an example of how to use.

Code

function realistic_dummy_content_api_user_insert(&$edit, $account, $category) {

  // This hook is invoked only once when the user is first created, whether
  // by the administrator or by devel_generate. The hook is not invoked
  // thereafter.
  $filter = array(
    'exclude' => array(
      'picture',
    ),
  );
  _realistic_dummy_content_api_entity_presave($account, 'user', $filter);
}