Commit 891537c restored functionality inadvertently removed by f64e644, but lacked global declaration of the $user object, so didn't quite work as expected; adding this declaration ensures that the $user object (and thus the current user's preferences) are referenced in the proper scope
Commit f64e644f inadvertently removed a crucial line that prevents signatures from being shown. I also got rid of the commented out comment that gave the impression that this function is not used.
Edit link has been moved into the standard user links. Moderator/Admin links have been reordered.
In addition, some indent and whitespace changes to match Drupal coding standards.
https://dev.gridrepublic.org/browse/DBOINCP-334
Reorders comment links, standard links have QUOTE and REPLY first, followed by the flag-abuse links.
Created private function to add class "first" to first moderator link. This is used because the links are split now manaully split by the theme.
Also fix bug where user can have <preset> tag set from another project. Upon initial loading of the preferences form, the preferences are filled from the user's database entry.
https://dev.gridrepublic.org/browse/DBOINCP-325
boinccore_link() and boinccore_link_alter() are now responsible for adding links to forum topics (and team forum) and comments in order. This has been moved from the boinc theme template.php.
Now template.php contains a function to split the links string into two strings: links and moderator_links which duplciates the old functionality where the theme generated these two sets of links.
Backported code for forum_access module, from D7 patch. Allows admin to control separately the permissions of creating a forum post and creating forum comment on a post.
https://dev.gridrepublic.org/browse/DBOINCP-316
Fixed bug: Removed admin-only message which was being displayed to user. Now only admin knows whether or not preference presets are present in the drupal database.
Fixed bug: Removed else clause which was unnecessary, switch statement does the equivalent.
Fixed bug: statically called function removed; prevents PHP error messages in drupal log.
Text for admin editted to be slighly better.
Fixed wrong variable name in view.
Added additional conditional logic using a) error_mask and b) config.xml <dontsupressoutput> setting to match BOINC code. This is to suppress output if the app uses adaptive replication.
(b) is obtained through a new field in the fiew which loads the setting from config.xml into a variable.
Changed workunit view template. Variables from view used to determine if task list is output.
https://dev.gridrepublic.org/browse/DBOINCP-255
The default preference set when a user visits the accounts preference page is 'standard'.
Added form submit for BOINC: preferences preset admin interface. Admin may now save configuration with the disk usage settings from config.xml. In this way, those XML settings will be loaded into the database as the default preferences presets. These presets are in turn used by drupal when the user visits the preferences page. The form on that page will be filled with the preferences from the drupal database.
If there are no preference preset loaded in the drupal database, then the standard preset will be filled in with the disk usage settings from config.xml. Once it is save into the drupal database, the admin must use the Save configuration with disk usage settings from config.xml button in order to reload the disk usage settings from config.xml again.
https://dev.gridrepublic.org/browse/DBOINCP-310