core_customfield/form

Custom Field interaction management for Moodle.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) init

Source:

Initialise the custom fields manager.

Methods

(inner) confirmDelete(id, type, component, area, itemid)

Source:

Display confirmation dialogue

Parameters:
Name Type Description
id Number
type String
component String
area String
itemid Number

(inner) createNewCategory(component, area, itemid)

Source:

Creates a new custom fields category with default name and updates the list

Parameters:
Name Type Description
component String
area String
itemid Number

(inner) createNewField(element, component, area, itemid)

Source:

Create new custom field

Parameters:
Name Type Description
element HTMLElement
component String
area String
itemid Number

(inner) editField(element, component, area, itemid)

Source:

Edit custom field

Parameters:
Name Type Description
element HTMLElement
component String
area String
itemid Number

(inner) getCategoryNameFor(nodeElement) → {String}

Source:

Fetch the category name from an inplace editable, given a child node of that field.

Parameters:
Name Type Description
nodeElement NodeElement
Returns:
Type
String