diff -urp --strip-trailing-cr /home/urbmi5/public_html/sites/all/modules/fasttoggle/fasttoggle.admin.inc /home/techmi5/public_html/urbanministryjobs/sites/all/modules/fasttoggle/fasttoggle.admin.inc
--- /home/urbmi5/public_html/sites/all/modules/fasttoggle/fasttoggle.admin.inc 2008-03-24 10:12:14.000000000 -0500
+++ /home/techmi5/public_html/urbanministryjobs/sites/all/modules/fasttoggle/fasttoggle.admin.inc 2009-07-02 17:50:49.000000000 -0500
@@ -37,6 +37,7 @@ function fasttoggle_settings_form() {
'status' => t('Status (published/unpublished)'),
'sticky' => t('Sticky (stays at the top of listings)'),
'promote' => t('Promoted (visible on the front page)'),
+ 'moderate' => t('Moderated (in the moderation queue)'),
'comment' => t('Topic opened/closed (users are allowed/disallowed to post comments)'),
),
'#default_value' => array_keys(array_filter(variable_get('fasttoggle_node_settings', array('status' => TRUE, 'sticky' => TRUE, 'promote' => TRUE, 'comment' => FALSE)))),
diff -urp --strip-trailing-cr /home/urbmi5/public_html/sites/all/modules/fasttoggle/fasttoggle.module /home/techmi5/public_html/urbanministryjobs/sites/all/modules/fasttoggle/fasttoggle.module
--- /home/urbmi5/public_html/sites/all/modules/fasttoggle/fasttoggle.module 2008-04-19 14:35:36.000000000 -0500
+++ /home/techmi5/public_html/urbanministryjobs/sites/all/modules/fasttoggle/fasttoggle.module 2009-07-02 17:49:03.000000000 -0500
@@ -191,7 +191,7 @@ function fasttoggle_fasttoggle_options($
$admin = user_access('administer nodes');
// Get an array with all enabled fast toggle links
- $settings = variable_get('fasttoggle_node_settings', array('status' => TRUE, 'sticky' => TRUE, 'promote' => TRUE, 'comment' => FALSE));
+ $settings = variable_get('fasttoggle_node_settings', array('status' => TRUE, 'sticky' => TRUE, 'promote' => TRUE, 'moderate' => FALSE, 'comment' => FALSE));
if ($settings['status'] && ($admin || user_access('moderate posts'))) {
$return['status'] = _fasttoggle_get_label('node_status');
@@ -202,6 +202,9 @@ function fasttoggle_fasttoggle_options($
if ($settings['promote'] && ($admin || user_access('promote posts'))) {
$return['promote'] = _fasttoggle_get_label('node_promote');
}
+ if ($settings['moderate'] && ($admin || user_access('moderate posts'))) {
+ $return['moderate'] = _fasttoggle_get_label('node_moderate');
+ }
if (module_exists('comment') && $settings['comment'] && ($admin || user_access('administer comments'))) {
$return['comment'] = _fasttoggle_get_label('comment_admin');
}
@@ -304,6 +307,7 @@ function fasttoggle_views_tables() {
'status' => t('Status'),
'promote' => t('Promoted'),
'sticky' => t('Sticky'),
+ 'moderate' => t('Moderated'),
'comment' => t('Comment settings'),
),
),
@@ -338,6 +342,7 @@ function fasttoggle_fasttoggle_labels($s
'node_status' => array(0 => t('publish'), 1 => t('unpublish')),
'node_sticky' => array(0 => t('make sticky'), 1 => t('make unsticky')),
'node_promote' => array(0 => t('promote'), 1 => t('demote')),
+ 'node_moderate' => array(0 => t('unmoderate'), 1 => t('moderate')),
'comment_admin' => array(0 => t('lock comments'), 1 => t('unlock comments'), 2 => t('hide comments')),
'user_status' => array(0 => t('activate'), 1 => t('unblock')),
'comment_status' => array(0 => t('unpublish'), 1 => t('publish')),
@@ -348,6 +353,7 @@ function fasttoggle_fasttoggle_labels($s
'node_status' => array(0 => t('not published'), 1 => t('published')),
'node_sticky' => array(0 => t('not sticky'), 1 => t('sticky')),
'node_promote' => array(0 => t('not promoted'), 1 => t('promoted')),
+ 'node_moderate' => array(0 => t('not moderated'), 1 => t('moderated')),
'comment_admin' => array(0 => t('comments disabled'), 1 => t('comments read only'), 2 => t('comments read/write')),
'user_status' => array(0 => t('blocked'), 1 => t('active')),
'comment_status' => array(0 => t('published'), 1 => t('not published')),