You are here

function panels_node_node_info in Panels 7.3

Same name and namespace in other branches
  1. 5.2 panels_node/panels_node.module \panels_node_node_info()
  2. 6.3 panels_node/panels_node.module \panels_node_node_info()
  3. 6.2 panels_node/panels_node.module \panels_node_node_info()

Implementation of hook_node_info().

File

panels_node/panels_node.module, line 117
panels_node.module

Code

function panels_node_node_info() {

  // Safety: go away if CTools is not at an appropriate version.
  if (!defined('PANELS_REQUIRED_CTOOLS_API') || !module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
    return array();
  }
  return array(
    'panel' => array(
      'name' => t('Panel'),
      // We use panels_node_hook so that panels_node private
      // callbacks do not get confused with panels versions of
      // nodeapi callbacks.
      'base' => 'panels_node_hook',
      'body_label' => t('Teaser'),
      'description' => t("A panel layout broken up into rows and columns."),
    ),
  );
}