You are here

function npop_ds_fields_info_alter in Node pop-up 7

Implements hook_ds_fields_info_alter().

File

./npop.module, line 384
Create popup nodes with ajax and Drupal core functionality.

Code

function npop_ds_fields_info_alter(&$fields, $entity_type) {
  if (isset($fields['title'])) {
    $fields['title']['properties']['settings']['npop'] = array(
      'type' => 'select',
      'options' => array(
        'No',
        'Yes',
      ),
    );
    $fields['title']['properties']['default']['npop'] = 0;
    $fields['title']['function'] = 'npop_ds_render_field';
  }
}