Skip to content
Snippets Groups Projects
Select Git revision
  • 7.x-1.1
  • master default
  • 8.x-1.x
  • 7.x-1.x
  • 6.x-1.x
  • 7.x-1.2
  • 7.x-1.0
  • 7.x-1.0-rc1
  • 7.x-1.0-beta3
  • 7.x-1.0-beta2
  • 6.x-1.1
  • 7.x-1.0-beta1
  • 6.x-1.0
  • 6.x-1.0-rc1
  • 6.x-1.0-beta5
  • 6.x-1.0-beta4
  • 6.x-1.0-beta3
  • 6.x-1.0-beta2
  • 6.x-1.0-beta1
19 results

enforce_revlog

  • Clone with SSH
  • Clone with HTTPS
  • Michaël Dupont's avatar
    Issue #1517412 by Reg: Do not require validation when deleting or
    Michaël Dupont authored
    previewing a node.
    
    Issue #1517390 by Reg: Display content type real names instead of
    machine names on configuration page.
    a1607e2f
    History
    IMPORTANT NOTICE
    ================
    
    Enforce revlog will only be enabled for a node when a revision is about
    to be created. Therefore it WON'T require users to enter a log message
    when:
    
    - The node is being created (no previous version exists)
    
    - "Create new revision" is disabled (on the node form or set as a
      default through the content type configuration form)
    
    Make sure that "Create new revision" is checked as the default behavior 
    for the content types on which Enforce revlog is set.
    
    
    USAGE
    =====
    
    - Enable the module "Enforce revlog" in admin/modules
    
    - Go to admin/people/permissions to set the permission
      "skip revision log message" for relevant roles
    
    - Go to admin/config/user-interface/enforce_revlog to configure the
      module and activate it on the content types where it is needed.
    
    - Alternatively you can (de)activate Enforce revlog for a given content
      type on its content type editing form
    
    - Now when a user without "skip revision log message" creates or reverts
      (if enabled) a node revision, he/she will have to enter a log message.
    
    - If the "Create new revision" checkbox on the node editing form is
      unchecked while editing a node, Enforce Revlog will be disabled.
      If it's checked again, Enforce Revlog will be enabled again.
    
    
    TIPS
    ====
    
    On the node add/edit form, Enforce revlog will check if the property
    $node->enforce_revlog is set before enabling itself. Therefore you can
    define your very own conditions to set/unset $node->enforce_revlog in a
    custom module.