You are here

function _nd_theme in Node displays 6

Return theme functions.

1 call to _nd_theme()
nd_theme in ./nd.module
Implementation of hook_theme().

File

includes/nd.registry.inc, line 99
Registry functions.

Code

function _nd_theme() {
  $path = drupal_get_path('module', 'nd');
  $theme_functions = array(
    // Display overview form.
    'nd_display_overview_form' => array(
      'template' => 'nd-display-overview-form',
      'file' => 'theme.inc',
      'path' => $path . '/theme',
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    // Build modes matrix
    'nd_buildmodes_matrix_form' => array(
      'file' => 'nd.buildmodes.inc',
      'path' => $path . '/includes',
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    // Plugins form.
    'nd_plugins' => array(
      'file' => 'nd.plugins.inc',
      'path' => $path . '/includes',
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    // Field
    'nd_field' => array(
      'arguments' => array(
        'content' => NULL,
        'field_key' => NULL,
        'field' => NULL,
      ),
      'file' => 'theme.inc',
      'path' => $path . '/theme',
    ),
  );

  // Formatter theming functions.
  $formatters = array(
    'nd_bodyfield',
    'nd_title_h1_nolink',
    'nd_title_h1_link',
    'nd_title_h2_nolink',
    'nd_title_h2_link',
    'nd_title_h2_block_nolink',
    'nd_title_h2_block_link',
    'nd_title_p_nolink',
    'nd_title_p_link',
    'nd_author_link',
    'nd_author_nolink',
  );
  foreach ($formatters as $formatter) {
    $theme_functions[$formatter] = array(
      'file' => 'theme.inc',
      'path' => $path . '/theme',
      'arguments' => array(
        'node' => NULL,
      ),
    );
  }
  return $theme_functions;
}