<?php

/**
 * @file
 * Contains the default style plugin.
 */
/**
 * Default style plugin to render rows one after another with no
 * decorations.
 *
 * @ingroup views_style_plugins
 */
class eolapi_specimen_plugin_style_eolapi extends views_plugin_style{

  /**
   * Set default options
   */
  function options(&$options){
    parent::options($options);
  }

  function options_form(&$form, &$form_state){
    parent::options_form($form, $form_state);
  }

  function even_empty(){
    return TRUE;
  }

  function render(){
    if(count($this->view->result)){
      $content = parent::render();
      $content = array(
        'content' => array(
          '#markup' => $content
        ),
        '#attached' => array(
          'css' => array(
            drupal_get_path('module', 'eolapi_specimen') . '/css/eolapi_specimen.css'
          ),
          'js' => array(
            drupal_get_path('module', 'eolapi_specimen') . '/js/eolapi_specimen.js',
          )
        )
      );
      return $content;
    }
  }
}