You are here

function video_upload_admin_settings in Video 6

Same name and namespace in other branches
  1. 5 types/video_upload/video_upload.module \video_upload_admin_settings()
  2. 6.2 types/video_upload/video_upload.module \video_upload_admin_settings()

Setting form for video_upload

1 string reference to 'video_upload_admin_settings'
video_upload_menu in types/video_upload/video_upload.module
Implementation of hook_menu

File

types/video_upload/video_upload.module, line 37
video.module

Code

function video_upload_admin_settings() {
  $form = array();
  $form['video_upload_allowed_extensions'] = array(
    '#type' => 'textfield',
    '#title' => t('Allowed extensions'),
    '#description' => t('A comma separated list of video extesions uploadable with the video upload feature. Do not insert any space.'),
    '#default_value' => variable_get('video_upload_allowed_extensions', 'mov,flv,wmv'),
  );
  $form['video_upload_path_prefix'] = array(
    '#type' => 'textfield',
    '#title' => t('Pattern for the file prefix'),
    '#description' => t('Specify the pattern to prefix to file names uploaded with the video_upload module.  It will be appended after the site files directory (e.g., files) but before the file name itself.  Do not include a leading or trailing slash.  Spaces will be converted to underscores to avoid file system issues.'),
    '#default_value' => variable_get('video_upload_path_prefix', 'videos'),
  );
  $form['token_help'] = array(
    '#title' => t('Replacement patterns'),
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    '#description' => t('Prefer raw-text replacements for text to avoid problems with HTML entities!'),
  );
  $form['token_help']['help'] = array(
    '#value' => theme('token_help', 'node'),
  );
  return system_settings_form($form);
}