File C:\wamp\www\sites\all\modules\custom_user\custom_user.info:
name = Custom User
description = Custom User
core = 7.x
dependencies[] = alter_ego
File C:\wamp\www\sites\all\modules\custom_user\custom_user.module:
<?php
function custom_user_views_api() {
return array(
'api' => 3,
);
}
/**
* Implement hook_user_view().
*/
function custom_user_user_view($account, $view_mode, $langcode) {
dsm( $account );
}
File C:\wamp\www\sites\all\modules\custom_user\custom_user.views_default.inc :
<?php
function custom_user_views_default_views() {
$view = new view;
$view->name = 'custom_user_views';
$views[$view->name] = $view;
dsm( $views );
return $views;
}
If I add a syntax error within the "custom_user.views_default.inc" function, clearing all caches will return an error. So the function is parsed. But when I reload my page:
http://localhost:8080/?q=user/1
I can only see the dsm() from Called from: C:\wamp\www\sites\all\modules\custom_user\custom_user.module, line 15
I'm quite new to drupal. What am I doing wrong ?
EDITED AFTER FIRST ANSWER.