Commit 6fe95ec8 authored by Shimshock Group's avatar Shimshock Group Committed by Ra Mänd
Browse files

Issue #2551759 by ron_s, Chris Matthews: Published "Status" does not appear...

Issue #2551759 by ron_s, Chris Matthews: Published "Status" does not appear when using Override Node Options
parent ed0b0804
Loading
Loading
Loading
Loading
+8 −1
Changes for includes/node.inline_entity_form.inc: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -55,9 +55,16 @@ class NodeInlineEntityFormController extends EntityInlineEntityFormController {
      // The label might be missing if the Title module has replaced it.
      '#weight' => !empty($extra_fields['title']) ? $extra_fields['title']['weight'] : -5,
    );

    if (module_exists('override_node_options')) {
      $status_access = user_access('override ' . $node->type . ' published option');
    }
    else {
      $status_access = user_access('administer nodes');
    }
    $entity_form['status'] = array(
      '#type' => 'radios',
      '#access' => user_access('administer nodes'),
      '#access' => $status_access,
      '#title' => t('Status'),
      '#default_value' => $node->status,
      '#options' => array(1 => t('Published'), 0 => t('Unpublished')),