I am trying to create a custom button in Drupal 7. The link which the href should be equal to is dependent on the context such as the current UID.
I have created a view which normally has a plain text output as [title].
I want to use that text output as part of a link field such as
so I had written the code for the above link as such:
<a href="http://my-site.com/page/<?php $block = module_invoke('views', 'block_view', 'profile3-block_4'); print render($block[content]); ?>">LINK TEXT</a>
however the output seems as if it is placing part of a views div tag in the link instead. I tried stripping all html from the views block but no success. Anyone got ideas? Could it be an improper use of quotes?