@@ -132,7 +132,7 @@ function node_feedback_settings_form() {
132
132
'#default_value' => $flag_button_class_value,
133
133
'#size' => 60,
134
134
'#maxlength' => 128,
135
- '#required' => TRUE ,
135
+ '#required' => FALSE ,
136
136
];
137
137
138
138
$flag_thanks_message = $config->get('nf_thanks_message');
@@ -212,7 +212,7 @@ function node_feedback_settings_form() {
212
212
* This hook declares what blocks are provided by the module.
213
213
*/
214
214
function node_feedback_block_info() {
215
- $blocks['nf_stats '] = [
215
+ $blocks['node_feedback '] = [
216
216
// info: The name of the block.
217
217
'info' => t('Node Feedback: form'),
218
218
'description' => 'Node Feedback form.',
@@ -229,7 +229,7 @@ function node_feedback_block_info() {
229
229
function node_feedback_block_view($delta = '', $settings = [], $contexts = []) {
230
230
// The $delta parameter tells us which block is being requested.
231
231
switch ($delta) {
232
- case 'nf_stats ':
232
+ case 'node_feedback ':
233
233
$node = $contexts['node'];
234
234
$nf_allowed_content_types = config_get('node_feedback.settings', 'nf_allowed_content_type');
235
235
// dpm($nf_allowed_content_types);
@@ -240,7 +240,7 @@ function node_feedback_block_view($delta = '', $settings = [], $contexts = []) {
240
240
$nf_form = backdrop_get_form('node_feedback_form', $args);
241
241
// Pull out the contextual information (a node in this case) from the
242
242
// contexts array.
243
- $block['subject'] = t('Feedback stats for this node');
243
+ $block['subject'] = t('Feedback for this node');
244
244
$block['content'] = backdrop_render($nf_form);
245
245
}
246
246
}
0 commit comments