This shows you the differences between two versions of the page.

Link to this comparison view

professions [2013/09/12 22:49]
professions [2020/09/12 01:30] (current)
Line 1: Line 1:
 +====== Introduction ======
 +The professions core module offers a simple interface to lookup profession names by shortcut or full name, and to look up shortcuts for full profession names.
 +====== Function full_name($profstr) ======
 +This function tries to identify which profession //$profstr// is pointing to by comparing to full names and pre-defined shortcuts. It returns an array as result, with //error// = true if no match was found, //content// got the error text then. On success it returns the full profession name in //content// with //error// = false.
 +====== Function shortcut($profstr) ======
 +This function returns the shortcut for //$profstr// as //content// on success. If //$profstr// is no profession name it returns //error// = true.