no-view/[nid]
function MYMODULE_init ()
{
$path = drupal_get_path_alias(request_uri());
if (strpos($path, "no-view/") !== false) {
drupal_not_found();
exit;
}
}
>
, . node, .
Due to the fact that some types of content are not available, there are several legitimate reasons for this. First, it is often better to store complex data in a node with a custom content type, rather than in the CCK field in node, and share it with other nodes. You will never want to view this node data yourself. Another is to use nodes to display groups of things in a view on a page, but it does not make sense to view them yourself.
source
share