You are here

none.inc in Key 7.3

File

plugins/key_input/none.inc
View source
<?php

/**
 * @file
 * Plugin definition for the None key input.
 */
$plugin = array(
  'label' => t('None'),
  'description' => t("A key input for providers that don't accept a value."),
  'build configuration form' => 'key_input_none_build_configuration_form',
);

/**
 * Build the plugin configuration form.
 *
 * @return array
 *   The plugin configuration form.
 */
function key_input_none_build_configuration_form($form, &$form_state) {
  $form['key_value_message'] = array(
    '#markup' => t("The selected key provider does not accept a value. See the provider's description for instructions on how and where to store the key value."),
  );
  return $form;
}

Functions

Namesort descending Description
key_input_none_build_configuration_form Build the plugin configuration form.