function onlyone_admin_paths in Allow a content type only once (Only One) 7
Implements hook_admin_paths().
File
- ./
onlyone.module, line 60 - Allows to define if a content type must have more than one node in the site.
Code
function onlyone_admin_paths() {
if (variable_get('node_admin_theme')) {
$paths = array(
'onlyone/add' => TRUE,
);
return $paths;
}
}