You are here

function simplenews_theme in Simplenews 6.2

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_theme()
  2. 8 simplenews.module \simplenews_theme()
  3. 6 simplenews.module \simplenews_theme()
  4. 7.2 simplenews.module \simplenews_theme()
  5. 7 simplenews.module \simplenews_theme()
  6. 3.x simplenews.module \simplenews_theme()

Implementation of hook_theme().

File

./simplenews.module, line 2421
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_theme() {
  $path = drupal_get_path('module', 'simplenews');
  return array(
    'simplenews_multi_block' => array(
      'template' => 'simplenews-multi-block',
      'arguments' => array(),
      'path' => $path . '/theme',
    ),
    'simplenews_block' => array(
      'template' => 'simplenews-block',
      'path' => $path . '/theme',
      'arguments' => array(
        'tid' => NULL,
      ),
      'pattern' => 'simplenews_block__',
    ),
    'simplenews_status' => array(
      'template' => 'theme/simplenews-status',
      'file' => 'includes/simplenews.admin.inc',
      'arguments' => array(
        'status' => NULL,
        'source' => NULL,
        'already_sent' => NULL,
        'sent_subscriber_count' => NULL,
      ),
    ),
    'simplenews_newsletter_subject' => array(
      'arguments' => array(
        'name' => NULL,
        'title' => NULL,
        'language' => NULL,
      ),
      'path' => $path . '/theme',
    ),
    'simplenews_newsletter_body' => array(
      'template' => 'simplenews-newsletter-body',
      'arguments' => array(
        'node' => NULL,
        'language' => NULL,
      ),
      'pattern' => 'simplenews_newsletter_body__',
      'path' => $path . '/theme',
    ),
    'simplenews_newsletter_footer' => array(
      'template' => 'simplenews-newsletter-footer',
      'arguments' => array(
        'context' => NULL,
        'key' => NULL,
        'language' => NULL,
      ),
      'pattern' => 'simplenews_newsletter_footer__',
      'path' => $path . '/theme',
    ),
    'simplenews_subscription_list' => array(
      'file' => 'simplenews.admin.inc',
      'arguments' => array(
        'form' => NULL,
      ),
      'path' => $path . '/includes',
    ),
  );
}