You are here

function wsconfig_entity_info_alter in Web Service Data 7

Implements hook_entity_info_alter().

File

modules/wsconfig/wsconfig.module, line 172
Main module for wsconfig

Code

function wsconfig_entity_info_alter(&$entity_info) {
  foreach (wsconfig_get_types() as $type => $info) {
    $entity_info['wsconfig']['bundles'][$type] = array(
      'label' => $info->label,
      'admin' => array(
        'path' => 'admin/structure/wsconfig_types/%wsconfig_type',
        'real path' => 'admin/structure/wsconfig_types/' . $type,
        'bundle argument' => 4,
        'access arguments' => array(
          'administer wsconfig types',
        ),
      ),
    );
  }
}