Skip to content

Instantly share code, notes, and snippets.

@dvdcastro
Created July 14, 2018 12:51
Show Gist options
  • Save dvdcastro/eb8618d265f88ab8fb797d100821bab9 to your computer and use it in GitHub Desktop.
Save dvdcastro/eb8618d265f88ab8fb797d100821bab9 to your computer and use it in GitHub Desktop.
Sample yaml used for creating moodle-mod_livepoll
component: mod_livepoll
name: Live poll
release: "0.1.0"
requires: "3.4"
maturity: MATURITY_BETA
copyright: Copyright (c) 2018 Blackboard Inc. (http://www.blackboard.com)
features:
readme: true
license: true
settings: true
upgrade: true
privacy:
haspersonaldata: false
uselegacypolyfill: false
phpunit_tests:
- classname: poll_handler
mod_features:
backup_moodle2:
settingslib: true
## Capabilities defined by the plugin.
capabilities:
- name: addinstance
title: Add poll
captype: write
contextlevel: CONTEXT_COURSE
archetypes:
- role: manager
permission: CAP_ALLOW
- role: editingteacher
permission: CAP_ALLOW
clonepermissionsfrom: moodle/course:manageactivities
- name: view
title: View poll
captype: view
contextlevel: CONTEXT_MODULE
archetypes:
- role: guest
permission: CAP_ALLOW
- role: user
permission: CAP_ALLOW
- name: vote
title: Vote on poll
captype: write
contextlevel: CONTEXT_MODULE
archetypes:
- role: student
permission: CAP_ALLOW
events:
- eventname: course_module_instance_list_viewed
extends: \core\event\course_module_instance_list_viewed
- eventname: course_module_viewed
extends: \core\event\course_module_viewed
lang_strings:
- id: modulenameplural
text: Live polls
- id: livepollname_help
text: Live polls allow live voting of polls.
- id: livepollfieldset
text: Live poll settings
- id: newlivepoll
text: New Live poll
- id: modulename_help
text: This is the content of the help tooltip associated with the newlivepollname field
- id: modulename
text: Live poll
- id: livepollname
text: Live poll name
- id: pluginadministration
text: Live poll administration
- id: livepollsettings
text: Settings
- id: missingidandcmid
text: Missing id and cmid
- id: nonewmodules
text: No new Live polls
- id: view
text: View
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment