mirror of https://github.com/BOINC/boinc.git
Drupal: Add edit column to mdoeration queue so moderators may edit user profiles.
This commit is contained in:
parent
16a0580226
commit
1d07958562
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue