You are here

function featured_content_get_content_types in Featured Content 7

Same name and namespace in other branches
  1. 6.2 featured_content.module \featured_content_get_content_types()
  2. 6 featured_content.module \featured_content_get_content_types()
  3. 7.2 featured_content.module \featured_content_get_content_types()

Gets the enabled content types.

3 calls to featured_content_get_content_types()
featured_content_block_configure in ./featured_content.module
Implements hook_block_configure().
featured_content_block_save in ./featured_content.module
Implements hook_block_save().
featured_content_get_filtered_nids in ./featured_content.module
Get filtered node nids. Filter base on content types, users (authors) and taxonomy terms.

File

./featured_content.module, line 1548
Featured Content module for created related & featured content blocks.

Code

function featured_content_get_content_types() {
  $content_types = array();
  foreach (node_type_get_types() as $content_type) {
    $content_types[check_plain($content_type->type)] = check_plain($content_type->name);
  }
  natcasesort($content_types);
  $content_types = array(
    'CURRENT' => t('Use the content type of the page being shown.'),
  ) + $content_types;
  return $content_types;
}