You are here

function node_skinr_ui_element_options in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 modules/node.skinr.inc \node_skinr_ui_element_options()

Implements hook_skinr_ui_element_options().

File

modules/node.skinr.inc, line 17
Implements Skinr hooks for node.module.

Code

function node_skinr_ui_element_options($theme_name = NULL) {
  $options = array(
    'node' => array(),
  );
  $types = \Drupal\node\Entity\NodeType::loadMultiple();
  foreach ($types as $type) {
    $options['node'][$type
      ->id()] = $type
      ->label();
  }
  asort($options['node']);
  return $options;
}