You are here

function oembedembedly_admin in oEmbed 6.0

Same name and namespace in other branches
  1. 8 modules/oembedembedly/oembedembedly.admin.inc \oembedembedly_admin()
  2. 7 modules/oembedembedly/oembedembedly.admin.inc \oembedembedly_admin()
  3. 7.0 oembedembedly/oembedembedly.admin.inc \oembedembedly_admin()
1 string reference to 'oembedembedly_admin'
oembedembedly_menu in ./oembedembedly.module
Implementation of hook_menu().

File

./oembedembedly.module, line 69
Embed.ly support for oEmbed.module

Code

function oembedembedly_admin() {
  $form['oembedembedly_default'] = array(
    '#type' => 'radios',
    '#title' => t('Providers enabled by default'),
    '#default_value' => variable_get('oembedembedly_default', TRUE),
    '#options' => array(
      FALSE => t('Disabled'),
      TRUE => t('Enabled'),
    ),
    '#description' => t('This option defines whether providers should be enabled by default or not.'),
  );
  $form['oembedembedly_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('Embed.ly API Key'),
    '#default_value' => variable_get('oembedembedly_api_key', NULL),
    '#description' => t('Embed.ly requires developers to authenticate their requests to all endpoints. You must <a href="@pricing">sign up for any of the plans</a> to receive a key.', array(
      '@pricing' => 'http://embed.ly/pricing',
    )),
  );
  return system_settings_form($form);
}