<?php
/**
 * @file
 * Sample module for mchammer template.
 * Templates can also be created inside your theme.
 *
 */

/**
 * Implements hook_ctools_plugin_directory().
 */
function mchammer_sample_ctools_plugin_directory($module, $plugin) {
  if ($module == 'panels' && $plugin == 'layouts') {
    return "plugins/$plugin";
  }
}

/**
 * Implements hook_ds_layout_info().
 */
function mchammer_sample_ds_layout_info() {

  $path = drupal_get_path('module', 'mchammer_sample') . '/ds_layouts';

  $layouts = array(
    'newsletter_ds_twocol' => array(
      'label' => t('Table 2col'),
      'path' => $path . '/newsletter_ds_twocol',
      'regions' => array(
        'top' => t('Top'),
        'left' => t('Left'),
        'right' => t('Right'),
        'bottom' => t('Bottom'),
      ),
    ),
  );

  return $layouts;
}