You are here

function metatag_import_export_csv_type_list in Metatag Import Export CSV 7

Gets the list of Content Type for Content type dropdown.

2 calls to metatag_import_export_csv_type_list()
metatag_import_export_csv_download_form in ./metatag_import_export_csv_download_admin.inc
Form for exporting Meta tags.
metatag_import_export_csv_download_nid in ./metatag_import_export_csv_download_admin.inc
Gets the list of nid's according to content type.

File

./metatag_import_export_csv_download_admin.inc, line 11
Stores the code for export process.

Code

function metatag_import_export_csv_type_list() {
  $typedata = node_type_get_types();
  foreach ($typedata as $values1) {
    $type_machine_name = $values1->type;
    $type_human_name = t("@typename", array(
      '@typename' => $values1->name,
    ));
    $func_content_type[$type_machine_name] = $type_human_name;
  }
  $default_type = array(
    'all' => 'All',
  );
  $content_type = array_merge($default_type, $func_content_type);
  return $content_type;
}