Revision e9734207
Added by Assos Assos almost 5 years ago
drupal7/sites/all/modules/forum_access/forum_access.node.inc | ||
---|---|---|
75 | 75 |
} |
76 | 76 |
} |
77 | 77 |
if (is_array($old_links)) { |
78 |
/** @noinspection SlowArrayOperationsInLoopInspection */ |
|
78 | 79 |
$links = array_merge($links, $old_links); |
79 | 80 |
} |
80 | 81 |
} |
... | ... | |
207 | 208 |
global $user; |
208 | 209 |
|
209 | 210 |
$comment = $form_state['comment']; |
210 |
if ($cid = $form['cid']['#value'] && isset($form['author']) && !empty($user->_forum_access_moderator)) {
|
|
211 |
if ($form['cid']['#value'] && isset($form['author']) && !empty($user->_forum_access_moderator)) { |
|
211 | 212 |
$editable_administration_elements = variable_get('forum_access_allowed_comment_edit_administration_elements', array('homepage', 'status', 'subscriptions_notify')); |
212 | 213 |
foreach (element_children($form['author']) as $key) { |
213 | 214 |
if (array_search($key, $editable_administration_elements) === FALSE) { |
Also available in: Unified diff
Weekly update of contrib modules