You are here

function radioactivity_field_info in Radioactivity 7

Same name and namespace in other branches
  1. 7.2 radioactivity.field.inc \radioactivity_field_info()

Implementation of hook_field_info

File

./radioactivity.field.inc, line 7

Code

function radioactivity_field_info() {
  return array(
    RADIOACTIVITY_FIELD_TYPE => array(
      'label' => t('Radioactivity'),
      'description' => t('This field stores radioactivity in the database.'),
      'settings' => array(
        'half_life' => 21600,
        'decay_granularity' => 60,
        'incident_energy' => 10,
        'cut_off' => 0.1,
        'storage' => 'live',
      ),
      'instance_settings' => array(
        'text_processing' => 0,
      ),
      'default_widget' => RADIOACTIVITY_BASIC_WIDGET,
      'default_formatter' => RADIOACTIVITY_AJAX_FORMATTER,
    ),
  );
}