You are here

function clone_is_permitted in Node clone 7

Same name and namespace in other branches
  1. 5.2 clone.module \clone_is_permitted()
  2. 5 clone.module \clone_is_permitted()
  3. 6 clone.module \clone_is_permitted()
4 calls to clone_is_permitted()
clone_access_cloning in ./clone.module
clone_action_clone in ./clone.module
Action callback.
clone_node_prepopulate in ./clone.pages.inc
Clones a node - prepopulate a node editing form
clone_node_save in ./clone.pages.inc
Clones a node by directly saving it.

File

./clone.module, line 111
Allow users to make a copy of an item of content (a node) and then edit that copy.

Code

function clone_is_permitted($type) {
  $omitted = variable_get('clone_omitted', array());
  return empty($omitted[$type]);
}