Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/content_types/form/form.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file
4 5
 * Plugins are described by creating a $plugin array which will be used
5 6
 * by the system that includes this file.
6 7
 */
8

  
7 9
$plugin = array(
8
  // only provides a single content type
10
  // Only provides a single content type.
9 11
  'single' => TRUE,
10 12
  'render last' => TRUE,
11 13
  'title' => t('General form'),
......
43 45
    $block->delta = $context->form_id;
44 46
  }
45 47
  else {
46
    $block->title = t('Form');
48
    $block->title   = t('Form');
47 49
    $block->content = t('Form goes here.');
48 50
    $block->delta   = 'unknown';
49 51
  }
......
56 58
}
57 59

  
58 60
function ctools_form_content_type_edit_form($form, &$form_state) {
59
  // provide a blank form so we have a place to override title
61
  // Provide a blank form so we have a place to override title
60 62
  // and stuff.
61 63
  return $form;
62 64
}

Formats disponibles : Unified diff