You are here

function _media_gallery_get_field_license_values in Media Gallery 7

Same name and namespace in other branches
  1. 7.2 media_gallery.fields.inc \_media_gallery_get_field_license_values()

Allowed values callback for field_license list field.

@todo: should be moved to media_cc module or something.

1 string reference to '_media_gallery_get_field_license_values'
_media_gallery_controlled_fields in ./media_gallery.install
Returns definitions for fields this module both creates and deletes.

File

./media_gallery.fields.inc, line 309
Field API integration for media_gallery.module.

Code

function _media_gallery_get_field_license_values() {
  return array(
    'none' => t('None (all rights reserved)'),
    '' => t('-- Creative Commons --'),
    'cc_sa_nc' => t('Attribution, Non-Commercial, Share Alike'),
    'cc_nc' => t('Attribution, Non-Commercial'),
    'cc_nd_nc' => t('Attribution, Non-Commercial, No Derivative Works'),
    'cc' => t('Attribution'),
    'cc_sa' => t('Attribution, Share Alike'),
    'cc_nd' => t('Attribution, No Derivative Works'),
  );
}