Révision dd54aff9
Ajouté par Assos Assos il y a plus de 10 ans
htmltest/sites/all/modules/entity/modules/comment.info.inc | ||
---|---|---|
24 | 24 |
$properties['hostname'] = array( |
25 | 25 |
'label' => t("IP Address"), |
26 | 26 |
'description' => t("The IP address of the computer the comment was posted from."), |
27 |
'access callback' => 'entity_metadata_comment_properties_access', |
|
27 | 28 |
'schema field' => 'hostname', |
28 | 29 |
); |
29 | 30 |
$properties['name'] = array( |
... | ... | |
40 | 41 |
'description' => t("The email address left by the comment author."), |
41 | 42 |
'getter callback' => 'entity_metadata_comment_get_properties', |
42 | 43 |
'setter callback' => 'entity_property_verbatim_set', |
43 |
'setter permission' => 'administer comments', |
|
44 | 44 |
'validation callback' => 'valid_email_address', |
45 |
'access callback' => 'entity_metadata_comment_properties_access', |
|
45 | 46 |
'schema field' => 'mail', |
46 | 47 |
); |
47 | 48 |
$properties['homepage'] = array( |
... | ... | |
56 | 57 |
'label' => t("Subject"), |
57 | 58 |
'description' => t("The subject of the comment."), |
58 | 59 |
'setter callback' => 'entity_property_verbatim_set', |
59 |
'setter permission' => 'administer comments', |
|
60 | 60 |
'sanitize' => 'filter_xss', |
61 | 61 |
'required' => TRUE, |
62 | 62 |
'schema field' => 'subject', |
... | ... | |
88 | 88 |
'description' => t("The comment's parent, if comment threading is active."), |
89 | 89 |
'type' => 'comment', |
90 | 90 |
'getter callback' => 'entity_metadata_comment_get_properties', |
91 |
'setter permission' => 'administer comments', |
|
91 | 92 |
'schema field' => 'pid', |
92 | 93 |
); |
93 | 94 |
$properties['node'] = array( |
... | ... | |
116 | 117 |
// it is an integer, so we follow the schema definition. |
117 | 118 |
'type' => 'integer', |
118 | 119 |
'options list' => 'entity_metadata_status_options_list', |
119 |
'setter permission' => 'administer comments',
|
|
120 |
'access callback' => 'entity_metadata_comment_properties_access',
|
|
120 | 121 |
'schema field' => 'status', |
121 | 122 |
); |
122 | 123 |
return $info; |
Formats disponibles : Unified diff
Weekly update of contrib modules