diff --git a/drupal/sites/all/features/user_profiles/user_profiles.views_default.inc b/drupal/sites/all/features/user_profiles/user_profiles.views_default.inc index 18fc7670cd..5935c242e1 100644 --- a/drupal/sites/all/features/user_profiles/user_profiles.views_default.inc +++ b/drupal/sites/all/features/user_profiles/user_profiles.views_default.inc @@ -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' => '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(