By maxiorel on
Hi,
I need to create custom profile block using URL from profiles. I have
<?php if (isset($profile['profile_url'])): ?>
<?php print $profile['profile_url']->value .'<br />'; ?>
<?php endif; ?>
But I don't know how to change displayed text of this link. Is there any solution?
Comments
<?php if
Thanks, but this is not,
Thanks, but this is not, what I need. The code above generate
and I need something like
Jan Polzer, Drupal & Symfony developer
Where are you doing this?
If your doing this in the theme user_template file then you can just grab the actual value off the $account object (which should be a raw string), rather than the fields array which will have its content processed into rendered output. Obviously this means you have to be a bit careful as you will be dealing with unfiltered user input - but you should be ok ...
Cheers,
Mike,
Computerminds offer Drupal development, consulting and training
Mike,
Computerminds offer Drupal development, consulting and training
thanks, that is exactly I
thanks, that is exactly I want. Now I am able to use this piece of code :-)
Jan Polzer, Drupal & Symfony developer