KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/afglcweb/ny/sites/all/modules/views/modules/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/afglcweb/ny/sites/all/modules/views/modules/user/views_handler_field_user_link_edit.inc
<?php
// $Id: views_handler_field_user_link_edit.inc,v 1.1.4.1 2010/03/19 22:59:10 merlinofchaos Exp $
/**
 * Field handler to present a link to user edit.
 */
class views_handler_field_user_link_edit extends views_handler_field_user_link {
  function render($values) {
    $text = !empty($this->options['text']) ? $this->options['text'] : t('edit');
    $uid = $values->{$this->aliases['uid']};
    // Fake object to check access.
    $account = new stdClass();
    $account->uid = $uid;
    if (user_edit_access($account)) {
      return l($text, "user/$uid/edit", array('query' => drupal_get_destination()));
    }
  }
}


Anon7 - 2021