-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathos2web_base.module
More file actions
51 lines (46 loc) · 2.82 KB
/
os2web_base.module
File metadata and controls
51 lines (46 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @file
* Code for the OS2Web indholdstyper feature.
*/
include_once('os2web_base.features.inc');
/**
* Implements hook_date_format_types().
*/
function os2web_base_date_format_types() {
// Define the core date format types.
return array(
'os2web_base_date_only' => t('Date Only'),
);
}
/**
* Implements hook_date_formats().
*/
function os2web_base_date_formats() {
return array(
array(
'type' => 'os2web_base_date_only',
'format' => 'Y-m-d',
'locales' => array(),
),
);
}
/**
* Implements hook_os2web_help().
*/
function os2web_base_os2web_help($sections) {
// Content types.
$sections['contenttype'] = t('<p><b>Contentpage:</b> A <a href="@url" target="_blank">contentpage</a> is a regular CMS page, where you can show regular static content.</p>', array('@url' => url('node/add/os2web-base-contentpage')));
$sections['contenttype'] .= t('<p><b>Gallery:</b> <a href="@url" target="_blank">Create a Gallery</a> to show a group of images together in an album.</p>', array('@url' => url('node/add/os2web-base-gallery')));
$sections['contenttype'] .= t('<p><b>iFrame:</b> <a href="@url" target="_blank">Create an iFrame</a> to show a external article or page directly on your site as normal content .</p>', array('@url' => url('node/add/os2web-base-iframe')));
$sections['contenttype'] .= t('<p><b>Video and Sound:</b> <a href="@url" target="_blank">Create a page with a video or a sound</a></p>', array('@url' => url('node/add/media')));
if (module_exists('os2web_breaking_news')) {
$sections['contenttype'] .= t('<p><b>Nyheder:</b> <a href="@url" target="_blank">Create a news story</a>. News stories are shown in the different news overviews. Promote a News story to get in at the top of every page on your site.</p>', array('@url' => url('node/add/os2web_base_news')));
}
else {
$sections['contenttype'] .= t('<p><b>Nyheder:</b> <a href="@url" target="_blank">Create a news story</a>. News stories are shown in the different news overviews.</p>', array('@url' => url('node/add/os2web_base_news')));
}
$sections['contenttype'] .= t('<p><b>Image carrousell:</b> <a href="@url" target="_blank">Add an image</a> to be shown in the carrousell at the frontpages.<br />Promote the image to e.g. the fronpage or a portalfrontpage. The image can also be shown in a time interval. Define what the image should link to by entering an internal or external URL.</p>', array('@url' => url('node/add/os2web_base_rotating_image')));
$sections['contenttype'] .= t('<p><b>Selfservicelinks (<i>Selvbetjeningslink</i>):</b> <a href="@url" target="_blank">Selfservicelinks</a> are links to functions on tour site. The links are shown in the boxes of selfservicelinks. Create a link to what <b>could</b> be a selfservice.</p>', array('@url' => url('node/add/os2web_base_selfservice_link')));
return $sections;
}