Drupal: Add edit column to mdoeration queue so moderators may edit user profiles.

This commit is contained in:
Shawn Kwang 2018-09-20 11:38:02 -05:00
parent 16a0580226
commit 1d07958562
1 changed files with 41 additions and 0 deletions

View File

@ -318,6 +318,47 @@ function user_profiles_views_default_views() {
'field' => 'changed',
'relationship' => 'none',
),
'phpcode' => array(
'label' => 'Edit Profile',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'absolute' => 0,
'link_class' => '',
'alt' => '',
'rel' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'hide_alter_empty' => 1,
'value' => '<?php
$uid = $data->users_uid;
return l(
bts(\'edit\', array(), NULL, \'boinc:edit-profile\'),
"/moderate/profile/$uid/edit");
?>',
'exclude' => 0,
'id' => 'phpcode',
'table' => 'customfield',
'field' => 'phpcode',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'moderate' => array(