-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathding_social.features.inc
More file actions
75 lines (72 loc) · 1.53 KB
/
ding_social.features.inc
File metadata and controls
75 lines (72 loc) · 1.53 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/**
* @file
* ding_social.features.inc
*/
/**
* Implements hook_default_facebook_publication_type().
*/
function ding_social_default_facebook_publication_type() {
$items = array();
$items['ding_social_link'] = entity_import('facebook_publication_type', '{
"type" : "ding_social_link",
"label" : "Ding Social: Link",
"weight" : "0",
"description" : "",
"data" : null
}');
return $items;
}
/**
* Implements hook_flag_default_flags().
*/
function ding_social_flag_default_flags() {
$flags = array();
// Exported flag: "Facebook".
$flags['facebook'] = array(
'content_type' => 'node',
'title' => 'Facebook',
'global' => 1,
'types' => array(
0 => 'ding_event',
1 => 'ding_news',
),
'flag_short' => 'Push to Facebook',
'flag_long' => '',
'flag_message' => '',
'unflag_short' => 'Don\'t push to Facebook',
'unflag_long' => '',
'unflag_message' => '',
'unflag_denied_text' => '',
'link_type' => 'toggle',
'roles' => array(
'flag' => array(
0 => 4,
1 => 6,
2 => 3,
3 => 7,
4 => 9,
),
'unflag' => array(
0 => 4,
1 => 6,
2 => 3,
3 => 7,
4 => 9,
),
),
'weight' => 0,
'show_on_form' => 1,
'access_author' => '',
'show_on_page' => 0,
'show_on_teaser' => 0,
'show_contextual_link' => 0,
'i18n' => 0,
'module' => 'ding_social',
'locked' => array(
0 => 'name',
),
'api_version' => 2,
);
return $flags;
}