/[drupal]/contributions/modules/forum_access/forum_access.admin.inc
ViewVC logotype

Diff of /contributions/modules/forum_access/forum_access.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.24, Thu Aug 27 23:44:59 2009 UTC revision 1.25, Sun Sep 20 01:09:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: forum_access.admin.inc,v 1.23 2009/08/27 22:58:53 salvis Exp $  // $Id: forum_access.admin.inc,v 1.24 2009/08/27 23:44:59 salvis Exp $
3    
4  /**  /**
5   * @file forum_access.admin.inc   * @file forum_access.admin.inc
# Line 63  function _forum_access_forum_form(&$form Line 63  function _forum_access_forum_form(&$form
63      $form['forum_access']['permissions'][] = array(      $form['forum_access']['permissions'][] = array(
64        '#type' => 'markup',        '#type' => 'markup',
65        '#value' => '<div>'. t('Note that users need') .'<ul style="margin-top: 0"><li>'.        '#value' => '<div>'. t('Note that users need') .'<ul style="margin-top: 0"><li>'.
66      t('the !access_content and !access_comments permissions <strong>AND <em>View</em></strong> to be able to see this forum and its content at all,', $variables) .'</li><li>'.                             t('the !access_content and !access_comments permissions <strong>AND <em>View</em></strong> to be able to see this forum and its content at all,', $variables) .'</li><li>'.
67                             t('the !create_forum_topics (and similar) permissions <strong>AND <em>Post</em></strong> to be able to create forum content, and', $variables) .'</li><li>'.                             t('the !create_forum_topics (and similar) permissions <strong>AND <em>Post</em></strong> to be able to create forum content, and', $variables) .'</li><li>'.
68      t('the !post_comments and (probably) !post_comments_without_approval permission <!TAG>AND <em>Post</em></!TAG> to be able to post comments/replies;', $variables + array('!TAG' => (variable_get('forum_access_D5_legacy_mode', FALSE) ? 'del title="'. t('Drupal 5 legacy mode') .'"' : 'strong'))) .'</li><li>'.                             t('the !post_comments and (probably) !post_comments_without_approval permission <!TAG>AND <em>Post</em></!TAG> to be able to post comments/replies;', $variables + array('!TAG' => (variable_get('forum_access_D5_legacy_mode', FALSE) ? 'del title="'. t('Drupal 5 legacy mode') .'"' : 'strong'))) .'</li><li>'.
69                             t('the !edit_own_forum_topics or !edit_any_forum_topics (and similar) permissions (<strong>OR <em>Edit</em></strong>) can be added if desired, <strong>plus</strong>', $variables) .'</li><li>'.                             t('the !edit_own_forum_topics or !edit_any_forum_topics (and similar) permissions (<strong>OR <em>Edit</em></strong>) can be added if desired, <strong>plus</strong>', $variables) .'</li><li>'.
70                             t('the !delete_own_forum_topics or !delete_any_forum_topics (and similar) permissions (<strong>OR <em>Delete</em></strong>) if desired;', $variables) .'</li><li>'.                             t('the !delete_own_forum_topics or !delete_any_forum_topics (and similar) permissions (<strong>OR <em>Delete</em></strong>) if desired;', $variables) .'</li><li>'.
71                             t('the !administer_comments (global!) permission <strong>OR <em>Edit</em>/<em>Delete</em></strong> to be able to edit/delete comments;', $variables) .'</li><li>'.                             t('the !administer_comments (global!) permission <strong>OR <em>Edit</em>/<em>Delete</em></strong> to be able to edit/delete comments;', $variables) .'</li><li>'.
# Line 413  function _forum_access_forum_form_disabl Line 413  function _forum_access_forum_form_disabl
413    $element_children = element_children($element);    $element_children = element_children($element);
414    foreach ($element_children as $rid) {    foreach ($element_children as $rid) {
415      if ($rid == $moderator_rid) {      if ($rid == $moderator_rid) {
416        $element[$rid]['#prefix'] = '<span title="'. t("This is the (temporary) @Forum_Moderator role; it has the '@administer_nodes' and '@administer_comments' permissions and is only used temporarily by @Forum_Access &mdash; do NOT give this role to any user!", array('@Forum_Moderator' => t('Forum Moderator'), '@administer_nodes' => $tr('administer nodes'), '@administer_comments' => $tr('administer comments'), '@Forum_Access' => 'Forum Access')) .'">';        $element[$rid]['#prefix'] = '<span title="'. t("This is the (temporary) @Forum_Moderator role; it has the '@administer_nodes' and '@administer_comments' permissions and is only used temporarily by @Forum_Access &mdash; do NOT give this role to any user!", array('@Forum_Moderator' => t('Forum Moderator'), '@administer_nodes' => $tr('administer nodes'), '@administer_comments' => $tr('administer comments'), '@Forum_Access' => 'Forum Access')) .'" class="forum-access-temporary-moderator">';
417        $element[$rid]['#suffix'] = "</span>";        $element[$rid]['#suffix'] = "</span>";
418        $element[$rid]['#default_value'] = TRUE;        $element[$rid]['#default_value'] = TRUE;
419        $element[$rid]['#disabled'] = TRUE;        $element[$rid]['#disabled'] = TRUE;

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.2