You are here

function fc_progress_content_type_content_types in Field Complete 7

Return all fc progress content types available

1 call to fc_progress_content_type_content_types()
fc_progress_content_type_content_type in fc_progress/plugins/content_types/fc_progress.inc
Get the full definition of a given subtype.
1 string reference to 'fc_progress_content_type_content_types'
fc_progress.inc in fc_progress/plugins/content_types/fc_progress.inc
Plugin to handle field completeness.

File

fc_progress/plugins/content_types/fc_progress.inc, line 33
Plugin to handle field completeness.

Code

function fc_progress_content_type_content_types() {
  $types =& drupal_static(__FUNCTION__, array());
  if (!empty($types)) {
    return $types;
  }
  $entity_info = entity_get_info();
  foreach ($entity_info as $entity_type => $info) {
    $types[$entity_type] = array(
      'category' => t('Field Complete'),
      'title' => t('Field Complete Progress: @label', array(
        '@label' => $info['label'],
      )),
      'required context' => new ctools_context_required($info['label'], $entity_type),
      'description' => t('Display the completeness of an entity.'),
      'edit form' => 'fc_progress_content_type_options',
    );
  }
  return $types;
}