You are here

function regcode_get_fields in Registration codes 6

Same name and namespace in other branches
  1. 5.3 regcode_api.inc.php \regcode_get_fields()
  2. 6.2 regcode.module \regcode_get_fields()
  3. 7.2 regcode.module \regcode_get_fields()
  4. 7 regcode.module \regcode_get_fields()

Load the regcode field definitions from the schema file

Return value

array List of field definitions

4 calls to regcode_get_fields()
regcode_admin_import in ./regcode.admin.php
Return the form associated with the registration code import admin page
regcode_admin_list_action_export in ./regcode.admin.php
Regcode Action: Exports to CSV
regcode_admin_list_getmarkup in ./regcode.admin.php
Return the marked up list for display
regcode_admin_list_getresource in ./regcode.admin.php
Grab the result resource based on the form state

File

./regcode.api.php, line 106
A generic set of functions for interacting with and creating regcodes

Code

function regcode_get_fields() {
  require_once 'regcode.install';
  $schema = regcode_schema('regcode');
  return $schema['regcode']['fields'];
}