Drupal 7 View unset Read More link (attachment_after) programmatically


function mymodule_views_post_build(&$view) {
  switch ($view->name) {
    case 'my_view_name': 
      $view->attachment_after = ''; 
      unset($view->attachment_after); 
    break;
  }
}

Add / Change arguments in a view programmatically (Drupal 6)


function hook_views_pre_view(&$view, &$display_id, &$args) {
    if ($view->name == 'your_view_name') {
         $view->set_arguments(array(arg1,arg2,arg3));
    }
}