You are here

function media_unsplash_admin in Media Unsplash 7

Implements hook_admin().

1 string reference to 'media_unsplash_admin'
media_unsplash_menu in ./media_unsplash.module
Implements hook_menu().

File

./media_unsplash.admin.inc, line 11
Definition of all admin pages.

Code

function media_unsplash_admin() {
  $form = array();
  $form['media_unsplash_api'] = array(
    '#type' => 'textfield',
    '#title' => t('Unsplash Client ID'),
    '#default_value' => variable_get('media_unsplash_api', ""),
    '#description' => t('Register on Unsplash.com, create your application and get your Client ID <a href="https://unsplash.com/oauth/applications/" target="_blank">here</a>.'),
    '#required' => TRUE,
  );
  return system_settings_form($form);
}