Hi everybody.

Hello everybody.

I wanted to change the edit profile page with the user-profile-edit.tpl.php.

I added this function in template.php .

function minimi_theme() {
	return array(
		// The form ID
		'user_profile_form' => array(
		// Forms always take the form argument.
		'arguments' => array('form' => NULL),
		'render element' => 'form',
		'template' => 'templates/user-profile-edit',
		),
	);
}

I created the file user-profile- edit.tpl.php .

To test , I wrote "hello toto" in the .tpl .

But nothing happens .
Or is my mistake in your opinion ? I 've missed a step ?

Thanks for your help.

Comments

pognoss’s picture

I found my mistake , my template folder does not have an 's'. I changed 'template ' => ' templatess / user -profile- edit '.

But now I have a warning when I see the forms in the edit page .

<section class="separator-grain separator group">
<?php

 	print '<h2 class="green-light separator-padded separator-dashed-bottom">'; print t('Your details:'); print '</h2>';
  print drupal_render($form['account']['mail']);
  print drupal_render($form['account']['name']);
?>
  </div>
</section>
<section class="group">
<?php
  print '<h2 class="green-light">'; print t('Reset your password:'); print '</h2>';
  print drupal_render($form['account']['current_pass']);
  print drupal_render($form['account']['pass']);
  print drupal_render($form['account']['pass2']);
?>
</section>
<?php
  print drupal_render($form['form_build_id']);
  print drupal_render($form['form_id']);
  print drupal_render($form['form_token']);
  print drupal_render($form['actions']);
  print drupal_render($form['#validate']);

?>
Warning : Invalid argument supplied for foreach() dans element_children() (ligne 6540 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 5997 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6007 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6045 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#printed' dans drupal_render() (ligne 6052 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Invalid argument supplied for foreach() dans element_children() (ligne 6540 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 5997 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6007 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6045 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#printed' dans drupal_render() (ligne 6052 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Invalid argument supplied for foreach() dans element_children() (ligne 6540 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 5997 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6007 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6045 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#printed' dans drupal_render() (ligne 6052 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Invalid argument supplied for foreach() dans element_children() (ligne 6540 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 5997 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6007 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#children' dans drupal_render() (ligne 6045 dans /home/lesprosdud/www/dev/includes/common.inc).
Warning : Illegal string offset '#printed' dans drupal_render() (ligne 6052 dans /home/lesprosdud/www/dev/includes/common.inc).