public function Drupal7::hookUserInsert in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/Framework/Drupal7.php \Drupal\realistic_dummy_content_api\Framework\Drupal7::hookUserInsert()
File
- api/
src/ Framework/ Drupal7.php, line 65
Class
- Drupal7
- Drupal 7-specific code.
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function hookUserInsert(&$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',
),
);
$this
->genericEntityPresave($account, 'user', $filter);
}