Posted By

daipratt on 02/24/10


edit node drupal

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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

 / Published in: Other


  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.