| 1 |
<?php |
<?php |
| 2 |
// $Id: forum_access.install,v 1.10 2009/02/25 13:05:40 salvis Exp $ |
// $Id: forum_access.install,v 1.11 2009/03/18 22:21:29 salvis Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 104 |
'default' => 0)); |
'default' => 0)); |
| 105 |
return $ret; |
return $ret; |
| 106 |
} |
} |
| 107 |
|
|
| 108 |
|
/** |
| 109 |
|
* Warn users upgrading from Drupal 5. |
| 110 |
|
*/ |
| 111 |
|
function forum_access_update_6100() { |
| 112 |
|
drupal_set_message('<b>Upgrading Forum Access from Drupal 5? Then please read:</b><br />In Drupal 5, comment posting was not restricted by Forum Access; users with <em>View</em> access (and the <em>post comments</em> permission) were always allowed to post forum comments. Starting with Drupal 6, posting comments is now restricted to users with <em>Post</em> access. If you prefer the old behavior, then go to '. l('Forum Settings', 'admin/content/forum/settings', array('fragment' => 'edit-forum-admin-settings-forum-access')) .' and turn <em>Drupal 5 legacy mode</em> on.', 'warning', FALSE); |
| 113 |
|
return array(); |
| 114 |
|
} |
| 115 |
|
|