| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: station_playlist.admin.inc,v 1.3 2009/11/26 03:55:14 drewish Exp $ 3 4 function station_playlist_admin_settings() { 5 $form = array(); 6 $form['dates'] = array( 7 '#type' => 'fieldset', 8 '#title' => t('Date formats'), 9 '#tree' => FALSE, 10 '#description' => t("See PHP's <a href='!date-url'>date()</a> function for more information date formatting. No hour or minute infomation is collected, so it will not be displayed correctly if you attempt to use those in the format.", array('!date-url' => url('http://php.net/date'))), 11 ); 12 $form['dates']['station_playlist_title_dateformat'] = array( 13 '#type' => 'textfield', 14 '#title' => t('Date format in playlist title'), 15 '#default_value' => variable_get('station_playlist_title_dateformat', 'm/d/Y'), 16 '#description' => t("The playlist's date is put into the title as a string. This setting lets you control how it is formatted."), 17 ); 18 $form['dates']['station_playlist_program_dateformat'] = array( 19 '#type' => 'textfield', 20 '#title' => t('Date format on program node'), 21 '#default_value' => variable_get('station_playlist_program_dateformat', 'F j, Y'), 22 '#description' => t("The playlist's date is also displayed on the the program node. This setting lets you control how it is formatted."), 23 ); 24 $form['tracks'] = array( 25 '#type' => 'fieldset', 26 '#title' => t('Tracks'), 27 '#tree' => FALSE, 28 ); 29 if (module_exists('station_catalog')) { 30 $form['tracks']['station_playlist_track_autocomplete_source'] = array( 31 '#type' => 'radios', 32 '#title' => t('Auto-complete source'), 33 '#default_value' => variable_get('station_playlist_track_autocomplete_source', 'playlists'), 34 '#options' => array( 35 'playlists' => t('Existing playlists'), 36 'catalog' => t('Albums in the catalog'), 37 'both' => t('Both'), 38 ), 39 '#description' => t("When adding playlists the track listings use auto-completing to save typing and provide suggestions. What data source should be used to provide these suggestions?"), 40 ); 41 } 42 else { 43 $form['tracks']['station_playlist_track_autocomplete_source'] = array( 44 '#type' => 'value', 45 '#value' => 'playlists', 46 ); 47 } 48 49 return system_settings_form($form); 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |