Projet

Général

Profil

Révision 7e72b748

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/ctools_plugin_example/plugins/content_types/no_context_content_type.inc
5 5
 * "No context" sample content type. It operates with no context at all. It would
6 6
 * be basically the same as a 'custom content' block, but it's not even that
7 7
 * sophisticated.
8
 *
9 8
 */
10 9

  
11 10
/**
......
33 32
  'icon' => 'icon_example.png',
34 33
  'category' => array(t('CTools Examples'), -9),
35 34

  
36
  // this example does not provide 'admin info', which would populate the
35
  // This example does not provide 'admin info', which would populate the
37 36
  // panels builder page preview.
38 37
);
39 38

  
......
56 55
  $ctools_help = theme('advanced_help_topic', array('module' => 'ctools', 'topic' => 'plugins', 'type' => 'title'));
57 56
  $ctools_plugin_example_help = theme('advanced_help_topic', array('module' => 'ctools_plugin_example', 'topic' => 'Chaos-Tools--CTools--Plugin-Examples', 'type' => 'title'));
58 57

  
59
  // The title actually used in rendering
58
  // The title actually used in rendering.
60 59
  $block->title = check_plain("No-context content type");
61 60
  $block->content = t("
62 61
  <div>Welcome to the CTools Plugin Example demonstration content type.
......
84 83
 * Note that if we had not provided an entry for this in hook_content_types,
85 84
 * this could have had the default name
86 85
 * ctools_plugin_example_no_context_content_type_edit_form.
87
 *
88 86
 */
89 87
function no_context_content_type_edit_form($form, &$form_state) {
90 88
  $conf = $form_state['conf'];

Formats disponibles : Unified diff