"1"); } if ($module == "page_manager" && $api == "pages_default") { return array("version" => "1"); } if ($module == "panels_mini" && $api == "panels_default") { return array("version" => "1"); } if ($module == "strongarm" && $api == "strongarm") { return array("version" => "1"); } if ($module == "video_embed_field" && $api == "default_video_embed_styles") { return array("version" => "1"); } } /** * Implements hook_image_default_styles(). */ function clameurs_image_default_styles() { $styles = array(); // Exported image style: video_thumb_docu. $styles['video_thumb_docu'] = array( 'label' => 'video_thumb_docu', 'effects' => array( 11 => array( 'name' => 'image_scale_and_crop', 'data' => array( 'width' => 300, 'height' => 160, ), 'weight' => -9, ), 10 => array( 'name' => 'canvasactions_file2canvas', 'data' => array( 'xpos' => 'center', 'ypos' => 'center', 'alpha' => 90, 'scale' => '', 'path' => 'sites/all/themes/figureslibres/clameurs/images/video_overlay.png', ), 'weight' => -8, ), ), ); // Exported image style: video_thumb_episode. $styles['video_thumb_episode'] = array( 'label' => 'video_thumb_episode', 'effects' => array( 14 => array( 'name' => 'image_scale_and_crop', 'data' => array( 'width' => 200, 'height' => 111, ), 'weight' => -9, ), 13 => array( 'name' => 'canvasactions_file2canvas', 'data' => array( 'xpos' => 'center', 'ypos' => 'center', 'alpha' => 90, 'scale' => '', 'path' => 'sites/all/themes/figureslibres/clameurs/images/video_overlay.png', ), 'weight' => -8, ), ), ); // Exported image style: video_thumb_themat. $styles['video_thumb_themat'] = array( 'label' => 'video_thumb_themat', 'effects' => array( 8 => array( 'name' => 'image_scale_and_crop', 'data' => array( 'width' => 760, 'height' => 428, ), 'weight' => -9, ), 2 => array( 'name' => 'canvasactions_file2canvas', 'data' => array( 'xpos' => 'center', 'ypos' => 'center', 'alpha' => 90, 'scale' => '', 'path' => 'sites/all/themes/figureslibres/clameurs/images/video_overlay.png', ), 'weight' => -8, ), ), ); return $styles; } /** * Implements hook_node_info(). */ function clameurs_node_info() { $items = array( 'documentair' => array( 'name' => t('Documentaire'), 'base' => 'node_content', 'description' => '', 'has_title' => '1', 'title_label' => t('Titre'), 'help' => '', ), 'episode' => array( 'name' => t('Épisode'), 'base' => 'node_content', 'description' => '', 'has_title' => '1', 'title_label' => t('Titre'), 'help' => '', ), 'thematique' => array( 'name' => t('Thematique'), 'base' => 'node_content', 'description' => '', 'has_title' => '1', 'title_label' => t('Titre'), 'help' => '', ), ); drupal_alter('node_info', $items); return $items; }