You are here

function certificate_test_certificate_map_options in Certificate 3.x

Same name and namespace in other branches
  1. 8.3 modules/certificate_test/certificate_test.module \certificate_test_certificate_map_options()
  2. 6.2 modules/certificate_test/certificate_test.module \certificate_test_certificate_map_options()
  3. 7.3 modules/certificate_test/certificate_test.module \certificate_test_certificate_map_options()
  4. 7.2 modules/certificate_test/certificate_test.module \certificate_test_certificate_map_options()

Implements certificate_map_options().

File

modules/certificate_test/certificate_test.module, line 6

Code

function certificate_test_certificate_map_options() {
  $chars = drupal_map_assoc(array_merge(range('a', 'z'), range('A', 'Z')));
  return array(
    'firstletter' => array(
      'title' => 'Username first letter',
      'description' => "Map by the first letter of the user's name",
      'options' => $chars,
    ),
  );
}