function clone_is_permitted in Node clone 6
Same name and namespace in other branches
- 5.2 clone.module \clone_is_permitted()
- 5 clone.module \clone_is_permitted()
- 7 clone.module \clone_is_permitted()
3 calls to clone_is_permitted()
- clone_access_cloning in ./
clone.module - 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 69 - 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]);
}