You are here

required_by_role.module in Required by role 8

Same filename and directory in other branches
  1. 7.2 required_by_role.module
  2. 7 required_by_role.module

Allows certain user roles to be exempt from required fields

File

required_by_role.module
View source
<?php

/**
 * @file
 * Allows certain user roles to be exempt from required fields
 */

/**
 * Implements hook_help().
 */
function required_by_role_help($path, $arg) {
  switch ($path) {
    case 'admin/help#required_by_role':
      $output = '';
      $output .= '<p>' . t('The Required by role module provides an easy and flexible way for developers and site builders to determine whether a field (instance) should be <em>required</em> by all users or just for selected user roles.') . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
required_by_role_help Implements hook_help().