You are here

function nd_ds_api in Node displays 7

Same name and namespace in other branches
  1. 6.3 nd.module \nd_ds_api()
  2. 6.2 nd.module \nd_ds_api()

Implements hook_ds_api().

File

./nd.module, line 11
Node displays.

Code

function nd_ds_api() {
  $help = array(
    t('<h3>Node displays</h3>
      <p>This module comes with a nd.tpl.php, available in the templates folder, which is optimized for use with Node Displays. You can copy the file to your themes folder to use your own version if you want.</p>
      <p>You can create a file called <strong>nd-<em>node_type</em>.tpl.php</strong>, <strong>nd-<em>node_type</em>-<em>build_mode</em>.tpl.php</strong> or <strong>nd-<em>node_type</em>-<em>build_mode</em>-<em>nid</em>.tpl.php</strong> for even more fine-grained theming.</p>
      <p>If you exclude the RSS build mode, the default node feed is generated, but might render strange content. Make sure you do not choose the "Titles only" as your feed content setting, otherwhise, this screen will not have any effect. Choosing either "Full text" or "Titles + teaser" does not matter, this screen will have effect on both settings, apart from the read more link. Remember that some fields like upload and terms are added automatically to the feed and that this manipulates the $description variable, it does not add extra keys to the feed.</p>
      <p>If you have a problem with the content not being rendered through DS, please read <a href="http://drupal.org/node/572614">http://drupal.org/node/572614</a>.
      '),
  );
  return array(
    'title' => 'Node displays',
    'module' => 'nd',
    'object' => 'node',
    'views_base' => array(
      'node',
    ),
    'types' => 'node_type_get_types',
    'extra' => array(
      'has_body',
    ),
    'plugins_exclude' => array(
      'rss',
    ),
    'regions_single' => array(
      'rss',
    ),
    'help' => $help,
  );
}