wisski_content_types-1.0.1/wisski_theme_content_types.module
wisski_theme_content_types.module
<?php
//Adding the module's library
function wisski_theme_content_types_page_attachments(array &$attachments) {
$attachments['#attached']['library'][] = 'wisski_theme_content_types/wisski_theme_content_types';
}
//Adding the module's translations
function wisski_theme_content_types_locale_translation_projects_alter(&$projects) {
$projects['wisski_theme_content_types'] = array(
'info' => array(
'interface translation project' => 'wisski_theme_content_types',
'interface translation server pattern' => drupal_get_path('module', 'wisski_theme_content_types').'/translations/de-de.po',
),
);
}
//Adding the module's content types
function wisski_theme_content_types_theme($existing, $type, $theme, $path) {
return array(
'node__col_md_3' => array(
'variables' => array('events' => NULL),
'template' => 'node--col-md-3',
'path' => $path . '/templates/nodes',
'base hook' => 'node',
),
'node__col_md_4' => array(
'variables' => array('events' => NULL),
'template' => 'node--col-md-4',
'path' => $path . '/templates/nodes',
'base hook' => 'node',
),
'node__col_md_6' => array(
'variables' => array('events' => NULL),
'template' => 'node--col-md-6',
'path' => $path . '/templates/nodes',
'base hook' => 'node',
),
'node__col_md_12' => array(
'variables' => array('events' => NULL),
'template' => 'node--col-md-12',
'path' => $path . '/templates/nodes',
'base hook' => 'node',
),
);
}
