--- modr8_admin.inc 2008-04-15 00:04:57.921875000 +0200
+++ modr8_admin.inc 2008-08-23 11:55:16.625000000 +0200
@@ -37,7 +37,7 @@ function modr8_settings_form($form_state
$form['text']['modr8_email_from'] = array(
'#type' => 'textfield',
'#title' => t('Moderator email adress'),
- '#description' => t('E-mail notices sent by modr8 will have this as the "From" address. Leave empty to use same "From" address as is used for user registration other administrative notices as set at Site information.', array
+ '#description' => t('E-mail notices sent by modr8 will have this as the "From" address. Leave empty to use same "From" address as is used for user registration other administrative notices as set at Site information.', array('@site-info' => url('admin/settings/site-information'))),
'#default_value' => variable_get('modr8_email_from', ''),
);
@@ -303,7 +303,11 @@ function modr8_log_action($op, $nid, $va
global $user;
$actions = array('approve' => 'Approve', 'delete' => 'Delete', 'nada' => 'No action');
- db_query("INSERT INTO {modr8_log} (nid, uid, author_uid, action, title, message, teaser, timestamp) VALUES (%d, %d, %d, '%s', '%s', '%s', '%s', %d)", $nid, $user->uid, $values['author_uid'], $actions[$op], $values['title'], $message, $values['preview']
+ db_query("INSERT INTO {modr8_log} (nid, uid, author_uid, action, title, message, teaser, timestamp) VALUES (%d, %d, %d, '%s', '%s', '%s', '%s', %d)", $nid, $user->uid, $values['author_uid'], $actions[$op], $values['title'], $message, $values['preview'], time());
+
+ // RSC. 2008-08-21 Notify modules interested on it.
+ // modules have to implement the function: hook_modr8_action ( $action ,$nid , $values, $message);
+ module_invoke_all('modr8_action', $op ,$nid , $values, $message);
}
function modr8_usermail($op, $nid, $values) {