• Main Page
  • Related Pages
  • Modules
  • Classes
  • Files
  • File List
  • File Members

modules/node/views_handler_field_node_link_edit.inc

00001 <?php
00007 class views_handler_field_node_link_edit extends views_handler_field_node_link {
00008 
00012   function render_link($node, $values) {
00013     // Ensure user has access to edit this node.
00014     if (!node_access('update', $node)) {
00015       return;
00016     }
00017 
00018     $this->options['alter']['make_link'] = TRUE;
00019     $this->options['alter']['path'] = "node/$node->nid/edit";
00020     $this->options['alter']['query'] = drupal_get_destination();
00021 
00022     $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
00023     return $text;
00024   }
00025 }

Generated on Sun Feb 26 2012 12:52:51 for Views by  doxygen 1.7.1