add info() function. Works like notice() but show messages in a div with class info-message.

update code to use info() instead of notice() when appropriate (non-error message)
add info-message class style in themes
This commit is contained in:
Fabio Comuni 2011-05-23 11:39:57 +02:00
parent 3ea145fae7
commit e1107b55c6
33 changed files with 123 additions and 75 deletions

View file

@ -99,7 +99,7 @@ function message_post(&$a) {
if($post_id) {
proc_run('php',"include/notifier.php","mail","$post_id");
notice( t('Message sent.') . EOL );
info( t('Message sent.') . EOL );
}
else {
notice( t('Message could not be sent.') . EOL );
@ -139,7 +139,7 @@ function message_content(&$a) {
intval(local_user())
);
if($r) {
notice( t('Message deleted.') . EOL );
info( t('Message deleted.') . EOL );
}
goaway($a->get_baseurl() . '/message' );
}
@ -155,7 +155,7 @@ function message_content(&$a) {
intval(local_user())
);
if($r)
notice( t('Conversation removed.') . EOL );
info( t('Conversation removed.') . EOL );
}
goaway($a->get_baseurl() . '/message' );
}
@ -221,7 +221,7 @@ function message_content(&$a) {
intval($a->pager['itemspage'])
);
if(! count($r)) {
notice( t('No messages.') . EOL);
info( t('No messages.') . EOL);
return $o;
}
@ -328,4 +328,4 @@ function message_content(&$a) {
return $o;
}
}
}