Skip to content

Instantly share code, notes, and snippets.

@delta-9
Created February 8, 2016 09:45
Show Gist options
  • Save delta-9/1426e2899c40e2f77b8e to your computer and use it in GitHub Desktop.
Save delta-9/1426e2899c40e2f77b8e to your computer and use it in GitHub Desktop.
<?php
/**
* @file
* Provide views data for our custom module_name.
*/
/**
* Implements hook_views_data().
*/
function module_name_views_data() {
$data['views']['my_custom_site_area'] = array(
'title' => t('My custom site area'),
'help' => t('Provide return link and a custom hardcoded text for my custom site.'),
'area' => array(
'id' => 'my_custom_site_area',
),
);
return $data;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment