Here's a patch that addresses the quiz node's install file to add a few lines that look like this:
<?php
// Default the "Show Author and Date" for quiz nodes to OFF.
$temp_array = variable_get('theme_settings', $default);
$temp_array['toggle_node_info_quiz'] = 0;
variable_set('theme_settings', $temp_array);
?>
This will reach into the theme_settings serialized array and add a zero, thus defaulting the 'show author' checkbox, found on the admin/build/theme/settings page, to default to OFF upon installation of the module. Site admins can re-enable this settings at any time in the future. This ensures that we're not stealing control of their site from them, but we default to a much prettier out-of-the-box scenario.
[a separate patch for the multichoice.module will follow. I'm not comfortable rolling patches for multiple files.]
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | multichoice_install_default_author_settings_0.patch | 3.07 KB | senpai |
| #1 | multichoice_install_default_author_settings.patch | 3.06 KB | senpai |
| quiz_install_default_author_settings.patch | 9.46 KB | senpai |
Comments
Comment #1
senpai commented...and here's the one for multichoice.module
Comment #2
senpai commentedWoops! Disregard the patch in #1. Bad boy, Senpai! No copy and pasting of code without seeing if it really work!
Comment #3
westwesterson commentedLooks good. Committed
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.