Code:
<?php
// Only show if $match is true
$match = false;
// Which node types
$types = array('lijst' );
// Match current node type with array of types
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nid = arg(1);
$node = node_load(array('nid' => $nid));
$type = $node->type;
$display = arg(2);
if ($display == 'edit') {
$match |= in_array($type, $types);
}
}
return $match;
?>
Project:
Type:
Reacties
better coding
I guess the display can be programmed in a nicer way:
Reactie toevoegen