function farm_map_mapbox_form_farm_map_settings_form_alter in farmOS 7
Implements hook_form_FORM_ID_alter().
File
- modules/
farm/ farm_map/ farm_map_mapbox/ farm_map_mapbox.module, line 26 - Farm map Mapbox.
Code
function farm_map_mapbox_form_farm_map_settings_form_alter(&$form, &$form_state, $form_id) {
// Add a field for setting the Mapbox API key in the farm_map settings form.
$form['farm_map_mapbox_api_key'] = array(
'#type' => 'textfield',
'#title' => t('Mapbox API Key'),
'#description' => t('Enter your Mapbox API key.'),
'#default_value' => variable_get('farm_map_mapbox_api_key', ''),
);
}