/[drupal]/contributions/modules/jquery_media/jquery_media.settings.inc
ViewVC logotype

Diff of /contributions/modules/jquery_media/jquery_media.settings.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5.2.3, Thu Jul 3 14:33:28 2008 UTC revision 1.5.2.4, Thu Jul 3 14:36:23 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: jquery_media.settings.inc,v 1.5.2.2 2008/07/03 14:29:26 aaron Exp $  // $Id: jquery_media.settings.inc,v 1.5.2.3 2008/07/03 14:33:28 aaron Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 57  function _jquery_media_help($section) { Line 57  function _jquery_media_help($section) {
57   */   */
58  function _jquery_media_settings_form() {  function _jquery_media_settings_form() {
59    $form = array();    $form = array();
   $form['classes'] = array(  
     '#type' => 'fieldset',  
     '#title' => t('Classes'),  
     '#description' => t('Set your media links to one of these configurable classes.'),  
     '#collapsible' => TRUE,  
     '#collapsed' => TRUE,  
   );  
   $form['classes']['media'] = array(  
     '#type' => 'fieldset',  
     '#title' => t('Media'),  
     '#collapsible' => TRUE,  
     '#description' => t('Links with this class will be replaced with the appropriate embedded code.'),  
   );  
   $form['classes']['media']['jquery_media_class_media_autoinvoke'] = array(  
     '#type' => 'checkbox',  
     '#title' => t('Auto-invoke Media class'),  
     '#default_value' => variable_get('jquery_media_class_media_autoinvoke', JQUERY_MEDIA_CLASS_MEDIA_AUTOINVOKE_DEFAULT),  
     '#description' => t('If checked, then links with the media class (below) will be automatically replaced with embed code when %code is invoked. You may always manually run this with %override, even if this checkbox is not set.', array('%code' => "jq_add('jquery_media')", '%override' => "jq_add('jquery_media', array('invoke media' => TRUE))")),  
   );  
   $form['classes']['media']['jquery_media_class_media'] = array(  
     '#type' => 'textfield',  
     '#title' => t('Media class'),  
     '#default_value' => variable_get('jquery_media_class_media', JQUERY_MEDIA_CLASS_MEDIA_DEFAULT),  
     '#description' => t('Media elements with a class attribute of this will be replaced with the relevant object embed code. In general, you probably want something like %class, which would replace all links with that class. Separate multiple classes with commas, such as %example.', array('%class' => JQUERY_MEDIA_CLASS_MEDIA_DEFAULT, '%example' => 'a.media, .filefield-item a, .view-item-audio-clip a')),  
   );  
60    $form['nodes'] = array(    $form['nodes'] = array(
61      '#type' => 'fieldset',      '#type' => 'fieldset',
62      '#title' => t('Node types'),      '#title' => t('Node types'),
# Line 109  function _jquery_media_settings_form() { Line 84  function _jquery_media_settings_form() {
84      '#default_value' => variable_get('jquery_media_pages', ''),      '#default_value' => variable_get('jquery_media_pages', ''),
85      '#description' => t('Automatically invoke jQuery Media on these pages. You may use * for a wildcard, such as %blog or %wild. Use %front for the front page.', array('%blog' => 'blog', '%wild' => 'blog/*', '%front' => '<front>')),      '#description' => t('Automatically invoke jQuery Media on these pages. You may use * for a wildcard, such as %blog or %wild. Use %front for the front page.', array('%blog' => 'blog', '%wild' => 'blog/*', '%front' => '<front>')),
86    );    );
87      $form['classes'] = array(
88        '#type' => 'fieldset',
89        '#title' => t('Classes'),
90        '#description' => t('Set your media links to one of these configurable classes.'),
91        '#collapsible' => TRUE,
92        '#collapsed' => TRUE,
93      );
94      $form['classes']['media'] = array(
95        '#type' => 'fieldset',
96        '#title' => t('Media'),
97        '#collapsible' => TRUE,
98        '#description' => t('Links with this class will be replaced with the appropriate embedded code.'),
99      );
100      $form['classes']['media']['jquery_media_class_media_autoinvoke'] = array(
101        '#type' => 'checkbox',
102        '#title' => t('Auto-invoke Media class'),
103        '#default_value' => variable_get('jquery_media_class_media_autoinvoke', JQUERY_MEDIA_CLASS_MEDIA_AUTOINVOKE_DEFAULT),
104        '#description' => t('If checked, then links with the media class (below) will be automatically replaced with embed code when %code is invoked. You may always manually run this with %override, even if this checkbox is not set.', array('%code' => "jq_add('jquery_media')", '%override' => "jq_add('jquery_media', array('invoke media' => TRUE))")),
105      );
106      $form['classes']['media']['jquery_media_class_media'] = array(
107        '#type' => 'textfield',
108        '#title' => t('Media class'),
109        '#default_value' => variable_get('jquery_media_class_media', JQUERY_MEDIA_CLASS_MEDIA_DEFAULT),
110        '#description' => t('Media elements with a class attribute of this will be replaced with the relevant object embed code. In general, you probably want something like %class, which would replace all links with that class. Separate multiple classes with commas, such as %example.', array('%class' => JQUERY_MEDIA_CLASS_MEDIA_DEFAULT, '%example' => 'a.media, .filefield-item a, .view-item-audio-clip a')),
111      );
112    $form['players'] = array(    $form['players'] = array(
113      '#type' => 'fieldset',      '#type' => 'fieldset',
114      '#title' => t('Default players'),      '#title' => t('Default players'),

Legend:
Removed from v.1.5.2.3  
changed lines
  Added in v.1.5.2.4

  ViewVC Help
Powered by ViewVC 1.1.2