mediamosa_mediamosa_configuration_collect()Implements the hook_mediamosa_settings_collect()
sites/all/modules/mediamosa/mediamosa.module, line 267
<?php
function mediamosa_mediamosa_configuration_collect() {
$form['settings_cron'] = array(
'#type' => 'fieldset',
'#title' => t('MediaMosa internal REST call'),
'#collapsible' => TRUE,
);
$form['settings_cron']['mediamosa_cron_url_app'] = array(
'#type' => 'textfield',
'#title' => t('URL REST'),
'#description' => t('The URL or IP Address of the server to apply the call for CRON and other internal global REST calls. This must be a MediaMosa REST interface and open from this server, f.e. \'http://app.mediamosa.local\'. <em>You must use http:// or other schema.</em>'),
'#required' => TRUE,
'#default_value' => 'http://localhost',
);
$form['settings_cron']['mediamosa_cron_url_app_local'] = array(
'#type' => 'checkbox',
'#title' => t('Use localhost with hostname.'),
'#description' => t('Enable to use localhost and provide the call with the hostname. This option is useful when your server does not allow to call the host directy on localhost by hostname. Enabled will call localhost with the hostname in the HTTP header, allowing the call to go directly to localhost instead of going outside and back in.'),
'#default_value' => '',
);
$form['settings_cron']['mediamosa_internal_password'] = array(
'#type' => 'textfield',
'#title' => t('Password used for internal REST calls.'),
'#description' => t('This password allows usage of the internal REST calls. The password is autogenerated and should not be changed.'),
'#default_value' => mediamosa::get_internal_password(),
'#required' => TRUE,
);
return $form;
}
?>