Can you please turn:
function vsf_upload_preprocess_views_view(&$vars) {
$view = $vars['view'];
if ($view->name == 'visual_select_file' && isset($_GET['ckeditor'])) {
if (module_exists('file_entity') && variable_get('vsf_file_entity', TRUE)) {
$link = l(t('Add file'), 'file/add', array('query' => array('vsf_destination' => request_uri())));
$vars['header'] = theme('item_list', array('items' => array($link), 'attributes' => array('class' => array('action-links'))));
}
else {
$form = drupal_get_form('vsf_upload_form');
$vars['header'] = drupal_render($form);
}
}
}
Into
function vsf_upload_preprocess_views_view(&$vars) {
$view = $vars['view'];
if ($view->tag == 'visual_select_file' && isset($_GET['ckeditor'])) {
if (module_exists('file_entity') && variable_get('vsf_file_entity', TRUE)) {
$link = l(t('Add file'), 'file/add', array('query' => array('vsf_destination' => request_uri())));
$vars['header'] = theme('item_list', array('items' => array($link), 'attributes' => array('class' => array('action-links'))));
}
else {
$form = drupal_get_form('vsf_upload_form');
$vars['header'] = drupal_render($form);
}
}
}
Then I'll be able to replace the default vsf view.
Comments
Comment #1
Johnny vd Laar commentedA patch!
Comment #3
rudiedirkx commentedPatch is empty =) but I replicated this enormous change AND even git attributed you, if that worked.
If I got it right, I'll create a new release, because I've been trying to get 1.6 out for a while, but the Drupal release mechanism hates me.