I've got hook_form_alter working for me now, but I can't wrap my brain around altering the user landing page. For example, http://mydomain.com/user/1.
Background:
-After successfully logging in, the menu in D7 changes along the top. ex. "Hello root"
-Clicking on "Hello root" changes the URL to http://mydomain.com/user
-The page is rendered with three tabs: "view, edit, shortcuts"
I want to alter the 'view' tab to include a little extra text below the "History" information, except I don't know how to access it. The form ID returns search-block-form, but that is not how to alter the 'view' tab information. Any ideas how to alter the information on the 'view' tab?
Update:
I tried this code, but nothing shows:
function cg_volunteer_user_view_alter() {
$form['user']['cleanup'] = array(
'#type' => 'markup',
'#markup' => variable_get('user_information', t('Hello world!')),
);
Comments
Try hook_user_view
Try hook_user_view :
- - turpana.com - -
Thanks!
Thank you. This works in D7.