Posted By

EvanL on 06/16/08


Tagged

php html drupal


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

panatlantica


Drupal: Edit this Block link


 / Published in: PHP
 

URL: http://drupal.org/node/120334

Allow for easier editing of content by users who didn't make the site.

  1. <div class="<?php print "block block-$block->module" ?>" id="<?php print "block-$block->module-$block->
  2. delta"; ?>">
  3. <?php print $block->subject ?>
  4. <div class="content"><?php print $block->content ?>
  5. <?php if ($block->module == "block"):?>
  6. <?php if (user_access('administer blocks')) :?>
  7. <br /><center><a href='/admin/block/edit/<?php print $block->delta;?>'>(edit this block)</a></center>
  8. <?php endif; ?>
  9. <?php endif; ?>
  10. </div>
  11. </div>

Report this snippet  

You need to login to post a comment.