mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-74465 block_rss_client: display config when adding
This commit is contained in:
parent
2fdfc9c362
commit
4d768ba508
1 changed files with 9 additions and 0 deletions
|
@ -89,4 +89,13 @@ class block_rss_client_edit_form extends block_edit_form {
|
||||||
$mform->addElement('selectyesno', 'config_block_rss_client_show_channel_image', get_string('clientshowimagelabel', 'block_rss_client'));
|
$mform->addElement('selectyesno', 'config_block_rss_client_show_channel_image', get_string('clientshowimagelabel', 'block_rss_client'));
|
||||||
$mform->setDefault('config_block_rss_client_show_channel_image', 0);
|
$mform->setDefault('config_block_rss_client_show_channel_image', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the configuration form when block is being added to the page
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function display_form_when_adding(): bool {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue