Posted by buckley on March 1, 2010 at 10:02pm
Jump to:
| Project: | Read only mode |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | BarisW |
| Status: | closed (fixed) |
Issue Summary
Hi,
Just letting you know that adding comments is possible. Nevertheless I can use this module
Thanks, Buckley
Comments
#1
Thanks.
I know that, I'll add this feature in next version.
If maintainanace period is short, there won't be many(or any) comments, because most of the people do update site during low traffic time.
I'm very busy with regular things of life, so I'm not able to give much time it.
Thanks.
--
Sharique
#2
nice module , thank you
i have added this to solve the comments issue
<?php
function readonlymode_form_comment_form_alter(&$form, &$form_state) {
$res = variable_get('readonlymode', '0');
if ( $res == 1 ) {
drupal_set_message(t('Site is in read only mode, so no content can be posted.')); // messgae to be displayed on the site
$form = array();
$form['comment'] = array(
'#value' => t('Site is in read only mode, so no content can be posted.'),
);
}
}
?>
#3
Fixed in the .dev version. Thanks for your comment.
Please test, so that I can make a stable 1.0 version of it!
#4
Automatically closed -- issue fixed for 2 weeks with no activity.