Skip to content

Instantly share code, notes, and snippets.

@jasloe
Last active December 27, 2015 04:49
Show Gist options
  • Save jasloe/7269852 to your computer and use it in GitHub Desktop.
Save jasloe/7269852 to your computer and use it in GitHub Desktop.
media feature configuration
/* media_default_view.inc contains: */
$view = new view();
$view->name = 'media_default';
$view->description = 'Default view for the media browser library tab.';
$view->tag = 'media, default';
$view->base_table = 'file_managed';
$view->human_name = 'Media browser';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* interestingly registers translated elements of view form with t() function */
$translatables['media_default'] = array(
t('Master'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('« first'),
t('‹ previous'),
t('next ›'),
t('last »'),
t('No files available.'),
t('Upload date'),
t('Use count'),
t('File name'),
t('Type'),
t('Media browser'),
t('Library'),
t('My files'),
t('User who uploaded'),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment