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/token/token.inc
62 62
}
63 63

  
64 64
/**
65
* Render the custom content type.
66
*/
65
 * Render the custom content type.
66
 */
67 67
function ctools_token_content_type_render($subtype, $conf, $panel_args, $context) {
68 68
  if (empty($context) || empty($context->data)) {
69 69
    return FALSE;
......
81 81
  }
82 82

  
83 83
  // Build the content type block.
84
  $block = new stdClass();
84
  $block          = new stdClass();
85 85
  $block->module  = 'ctools';
86 86
  $block->title   = $info['tokens'][$entity_type][$name]['name'];
87 87
  $block->content = $values[$name];
......
91 91
}
92 92

  
93 93
/**
94
* Returns an edit form for custom type settings.
95
*/
94
 * Returns an edit form for custom type settings.
95
 */
96 96
function ctools_token_content_type_edit_form($form, &$form_state) {
97 97
  $conf = $form_state['conf'];
98 98

  
......
113 113
  $form_state['conf']['sanitize'] = $form_state['values']['sanitize'];
114 114
}
115 115

  
116

  
117 116
/**
118
* Returns the administrative title for a type.
119
*/
117
 * Returns the administrative title for a type.
118
 */
120 119
function ctools_token_content_type_admin_title($subtype, $conf, $context) {
121 120
  return t('"@s" @name', array('@s' => $context->identifier, '@name' => $subtype));
122 121
}

Formats disponibles : Unified diff