You are here

function kaltura_create_entries_form in Kaltura 7.2

Same name and namespace in other branches
  1. 5 includes/kaltura.admin.inc \kaltura_create_entries_form()
  2. 6.2 includes/kaltura.admin.inc \kaltura_create_entries_form()
  3. 6 includes/kaltura.admin.inc \kaltura_create_entries_form()

Helper function to provide form fields containing all entries for import each entry as checkbox option.

_state

Parameters

$form:

array $entries_options:

Return value

mixed

1 string reference to 'kaltura_create_entries_form'
kaltura_import_entries_page in includes/kaltura.admin.inc
Callback function for url 'admin/settings/kaltura/import'.

File

includes/kaltura.admin.inc, line 899
Contains functions for administration use of the kaltura core module.

Code

function kaltura_create_entries_form($form, &$form_state, $entries_options = array()) {
  $form['desc'] = array(
    '#markup' => t('The list below includes media entries of your Kaltura account that are not synced to the Drupal server. Please select media entries to import to the Drupal server and submit. Imported media would be available to use within the Drupal site.'),
  );
  $form['check_all'] = array(
    '#type' => 'checkbox',
    '#title' => t('check all'),
    '#attributes' => array(
      'class' => array(
        'checkall',
      ),
    ),
  );
  $form['entries_to_import'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Choose the entries you want to import'),
    '#options' => $entries_options,
  );
  $form['import_now'] = array(
    '#type' => 'submit',
    '#name' => 'import_selected',
    '#value' => t('Import selected'),
  );
  return $form;
}