Posted By

daipratt on 02/24/10


Tagged

edit node drupal


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Onfire60


Drupal - display an edit link, if the user if allowed to see it


 / Published in: Other
 

URL: http://daipratt.co.uk

  1. <?php if (user_access('administer nodes')): ?>
  2. <a href="<?php print '?q=node/'.$node->nid ?>/edit" title="<?php print t('Edit') ?>">edit</a>
  3. <?php endif; ?>

Report this snippet  

You need to login to post a comment.