You are here

function publishcontent_tab_load in Publish Content 6

Same name and namespace in other branches
  1. 7 publishcontent.module \publishcontent_tab_load()

Decide to show the (un)publish tab or not.

File

./publishcontent.module, line 48
Add button to publish or unpublish a node, with access control based on the node type

Code

function publishcontent_tab_load($nid) {
  if (is_numeric($nid)) {
    $node = node_load($nid);
    if (variable_get('publishcontent_tabs', TRUE)) {
      return $node;
    }
  }
  return FALSE;
}