Skip to content

Don't disallow unpublished nodes from ever being part of data. #4

Description

@vordude

It's quite the leap to never allow unpublished nodes.

function _createapi__helper__process_content_type(...) {
  $query = new EntityFieldQuery();
  $query->entityCondition('entity_type', 'node')
    ->entityCondition('bundle', $content_type)
    ->propertyCondition('status', 1)

I do realize that it's required to start somewhere when making assumptions about the data users will want to create.

Any chance you'd be open to change this perspective? This makes a very sane default default behavior. I could see the above function allowing an override from in an individual's implementation of hook_createapi_content_types().

(I'm willing to do it, but won't bother if you don't care in the first place)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions