Drupal: Edit this Block link


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.