You are here

function firebase_form in Firebase Push Notification (FCM) 7

Form callback: Firebase settings.

See also

firebase_menu()

1 string reference to 'firebase_form'
firebase_menu in ./firebase.module
Implements hook_menu().

File

./firebase.module, line 34

Code

function firebase_form($form, &$form_state) {
  $form = array();
  $form['firebase_server_key'] = array(
    '#type' => 'textarea',
    '#title' => t('Firebase Server Key'),
    '#description' => t('This is the server key. <em>Do not confuse with API Key</em>'),
    '#default_value' => variable_get('firebase_server_key', ''),
    '#required' => TRUE,
  );
  $form['firebase_endpoint'] = array(
    '#type' => 'textfield',
    '#title' => t('Firebase endpoint'),
    '#description' => t('Google Firebase Cloud Messaging endpoint.'),
    '#default_value' => variable_get('firebase_endpoint', 'https://fcm.googleapis.com/fcm/send'),
    '#required' => TRUE,
  );
  return system_settings_form($form);
}