'nid', 'title' => t('Station Playlist Track'), 'help' => t('Station playlist track entries.'), ); // For other base tables, explain how we join $data['station_playlist_track']['table']['join'] = array( 'node' => array( 'handler' => 'views_join', // this is actually optional 'arguments' => array('station_playlist_track', 'node', 'nid', 'nid'), ), ); // ---------------------------------------------------------------- // Fields $data['station_playlist_track']['nid'] = array( 'title' => t('Playlist node'), 'help' => t("The playlist this track is attached to."), 'relationship' => array( 'base' => 'node', 'base field' => 'nid', 'field' => 'nid', 'handler' => 'views_handler_relationship', 'label' => t('Playlist'), ), ); $data['station_playlist_track']['weight'] = array( 'title' => t('Weight'), 'help' => t('The track weight field.'), 'field' => array( 'handler' => 'views_handler_field', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_numeric', 'label' => t('Weight'), ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['station_playlist_track']['artist'] = array( 'title' => t('Artist'), 'help' => t("Album artist name."), 'field' => array( 'handler' => 'views_handler_field', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_string', 'label' => t('Artist'), ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['station_playlist_track']['album'] = array( 'title' => t('Album'), 'help' => t("Title of the album."), 'field' => array( 'handler' => 'views_handler_field', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_string', 'label' => t('Album'), ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['station_playlist_track']['title'] = array( 'title' => t('Title'), 'help' => t("Title of the track."), 'field' => array( 'handler' => 'views_handler_field', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_string', 'label' => t('Title'), ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['station_playlist_track']['label'] = array( 'title' => t('Label'), 'help' => t("Name of the label that released the album."), 'field' => array( 'handler' => 'views_handler_field', 'click sortable' => TRUE, ), 'filter' => array( 'handler' => 'views_handler_filter_string', 'label' => t('Label'), ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); $data['station_playlist_track']['link'] = array( 'title' => t('Link'), 'help' => t("Link to more info on the track."), 'field' => array( 'handler' => 'views_handler_field_url', 'click sortable' => TRUE, ), 'sort' => array( 'handler' => 'views_handler_sort', ), ); return $data; }