You are here

function node_field_gmap_form_node_field_admin_settings_form_alter in Node Field 7.2

Implements hook_form_FORM_ID_alter().

File

modules/node_field_gmap/node_field_gmap.module, line 41

Code

function node_field_gmap_form_node_field_admin_settings_form_alter(&$form, &$form_state, $form_id) {
  $options = array(
    '@url' => url('https://developers.google.com/maps/documentation/javascript/get-api-key'),
  );
  $form['node_field_gmap_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Google Maps API Key'),
    '#description' => t('See <a href="@url">Google Maps API documentation</a> for more info.', $options),
    '#default_value' => variable_get('node_field_gmap_api_key', ''),
    '#required' => FALSE,
  );
  $form = system_settings_form($form);
  $requirements['node_field_gmap'] = array(
    'title' => t('Node Field Gmap'),
    'value' => 'Google Maps API Key is configured',
  );
}