function noderelationships_preprocess_views_ui_list_views in Node Relationships 6
Proxy function to preprocess the list views theme.
File
- ./
noderelationships.module, line 126 - This is the main script for the noderelationships module. It merely contains the implementation of hooks invoked by Drupal core, CCK, Views, etc. All common functions are externalized into several scripts that are included on demand.
Code
function noderelationships_preprocess_views_ui_list_views(&$vars) {
if (!isset($vars['views']) || !is_array($vars['views'])) {
return;
}
foreach ($vars['views'] as $view) {
if (!empty($view->tag) && in_array($view->tag, array(
NODERELATIONSHIPS_BACKREF_VIEW_TAG,
NODERELATIONSHIPS_NODEREF_VIEW_TAG,
))) {
if (!empty($view->path)) {
$view->path = t('Dynamically generated by the Node Relationships module.');
}
$view->description = t('This view is dynamically customized by the Node Relationships module.') . '<br />' . $view->description;
}
}
}