yamaps_example_feature.features.inc in Yandex.Maps 7
Exports generic Drupal hooks.
File
modules/yamaps_example_feature/yamaps_example_feature.features.incView source
<?php
/**
* @file
* Exports generic Drupal hooks.
*/
/**
* Implements hook_ctools_plugin_api().
*/
function yamaps_example_feature_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "strongarm" && $api == "strongarm") {
return [
"version" => "1",
];
}
}
/**
* Implements hook_views_api().
*/
function yamaps_example_feature_views_api($module = NULL, $api = NULL) {
return [
"api" => "3.0",
];
}
/**
* Implements hook_node_info().
*/
function yamaps_example_feature_node_info() {
$items = [
'yandex_maps_example' => [
'name' => t('Yandex Maps Page'),
'base' => 'node_content',
'description' => '',
'has_title' => '1',
'title_label' => t('Title'),
'help' => '',
],
];
return $items;
}
Functions
Name | Description |
---|---|
yamaps_example_feature_ctools_plugin_api | Implements hook_ctools_plugin_api(). |
yamaps_example_feature_node_info | Implements hook_node_info(). |
yamaps_example_feature_views_api | Implements hook_views_api(). |