You are here

function views_block_entity_property_info in Views Hacks 7

Implements hook_entity_property_info().

File

views_block/views_block.module, line 37

Code

function views_block_entity_property_info() {
  return array(
    'block' => array(
      'properties' => array(
        'module' => array(
          'label' => t('Module'),
          'type' => 'text',
          'schema field' => 'module',
          'description' => t('The module that exposes the block.'),
        ),
        'status' => array(
          'label' => t('Active'),
          'type' => 'boolean',
          'setter callback' => 'entity_property_verbatim_set',
          'schema field' => 'status',
          'description' => t('Whether or not the block is active.'),
        ),
      ),
    ),
  );
}