You are here

function shib_auth_schema in Shibboleth Authentication 6.3

Same name and namespace in other branches
  1. 8 shib_auth.install \shib_auth_schema()
  2. 6.4 shib_auth.install \shib_auth_schema()
  3. 7.4 shib_auth.install \shib_auth_schema()

Implementation of hook_schema().

This is how the schema of the module will look like

File

./shib_auth.install, line 70
This is the install file of the Shibboleth authentication module for Drupal system

Code

function shib_auth_schema() {
  $schema['shib_auth'] = array(
    'description' => t('Storing shibboleth authentication rules'),
    'fields' => array(
      'id' => array(
        'type' => 'serial',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'description' => t("The id of the Shibboleth role assignment rule"),
      ),
      'field' => array(
        'type' => 'varchar',
        'length' => 128,
        'default' => '',
        'description' => t("The observed server variable."),
      ),
      'regexpression' => array(
        'type' => 'varchar',
        'length' => 128,
        'default' => '',
        'description' => t("The joint regular expression."),
      ),
      'role' => array(
        'type' => 'varchar',
        'length' => 128,
        'default' => '',
        'description' => t("The assigned role."),
      ),
    ),
    'primary key' => array(
      'id',
    ),
  );
  return $schema;
}