Drupal - display an edit link, if the user if allowed to see it
Copy this code and paste it in your HTML
<?php if (user_access('administer nodes')): ?>
<a href="<?php print '?q=node/'.$node->nid ?>/edit" title="
<?php print t('Edit') ?>">edit
</a> <?php endif; ?>
URL: http://daipratt.co.uk
Report this snippet
Comments
Subscribe to comments