<?php

/**
 * Implementation of hook_imagecache_default_presets().
 */
function fgcf_imagecache_default_presets() {
  $items = array(
    'fgcf_theme_logo_liste' => array(
      'presetname' => 'fgcf_theme_logo_liste',
      'actions' => array(
        '0' => array(
          'weight' => '0',
          'module' => 'imagecache',
          'action' => 'imagecache_scale',
          'data' => array(
            'width' => '60',
            'height' => '60',
            'upscale' => 1,
          ),
        ),
      ),
    ),
    'prestataire_logo_full' => array(
      'presetname' => 'prestataire_logo_full',
      'actions' => array(
        '0' => array(
          'weight' => '0',
          'module' => 'imagecache',
          'action' => 'imagecache_scale',
          'data' => array(
            'width' => '200',
            'height' => '200',
            'upscale' => 1,
          ),
        ),
      ),
    ),
    'prestataire_logo_liste' => array(
      'presetname' => 'prestataire_logo_liste',
      'actions' => array(
        '0' => array(
          'weight' => '0',
          'module' => 'imagecache',
          'action' => 'imagecache_scale',
          'data' => array(
            'width' => '160',
            'height' => '48',
            'upscale' => 1,
          ),
        ),
      ),
    ),
  );
  return $items;
}

/**
 * Implementation of hook_node_info().
 */
function fgcf_node_info() {
  $items = array(
    'fgcf_fiche' => array(
      'name' => t('FG: Fiche de formation'),
      'module' => 'features',
      'description' => t('Une fiche de formation décrit de manière structurée une formation proposée au personnel France Galop'),
      'has_title' => '1',
      'title_label' => t('Titre'),
      'has_body' => '0',
      'body_label' => '',
      'min_word_count' => '0',
      'help' => '',
    ),
    'fgcf_prestataire' => array(
      'name' => t('FG: Prestataire de formation'),
      'module' => 'features',
      'description' => t('Un prestataire est une entité proposant des cours au catalogue de France Galop'),
      'has_title' => '1',
      'title_label' => t('Entité'),
      'has_body' => '1',
      'body_label' => t('Description'),
      'min_word_count' => '0',
      'help' => '',
    ),
    'fgcf_thematique' => array(
      'name' => t('FG Thème de formation'),
      'module' => 'features',
      'description' => t('Théme de formation, correspondant à un terme de premier niveau du vocabulaire des thèmes.'),
      'has_title' => '1',
      'title_label' => t('Titre'),
      'has_body' => '1',
      'body_label' => t('Description'),
      'min_word_count' => '0',
      'help' => '',
    ),
  );
  return $items;
}