← Back to team overview

mahara-contributors team mailing list archive

[Bug 1661125] A patch has been submitted for review

 

Patch for "master" branch: https://reviews.mahara.org/7433

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1661125

Title:
  Add custom profile fields

Status in Mahara:
  In Progress

Bug description:
  Allow the adding of custom profile fields via a
  local/lib/artefact_internal.php file that extends the ArtefactInternal
  one

  Have

  PluginArtefactInternalLocal::get_artefact_types()
  PluginArtefactInternalLocal::get_profile_artefact_types()
  PluginArtefactInternalLocal::get_contactinfo_artefact_types()

  extend their PluginArtefactInternal equivalents

  Have
  ArtefactTypeProfileLocal::get_all_fields()
  extend the ArtefactTypeProfile equivalent

  Have
  ArtefactTypeProfileLocal::get_desired_fields()

  To fetch info about which tab the custom field should go in and their
  order on the Content -> Profile page

  Also added hooks for profile artefacttypes so that we can fetch custom info for
  - getoptions() - get select options for field
  - defaultoption() - get default value for field
  - format_result() - to human readable info (useful for 'select' fields)
  - usersearch_column_structure() - info about which column template to use for admin users search list for custom field
  - get_special_data() - in case data is not saved in the 'artefact' table fetch it from where it lives

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1661125/+subscriptions


References