0

I am creating a custom bulk operation using hook_action_info and I can see that the operation is created successfully. But however, I want to add this to an existing views. I can do this using Views UI with editing the view and editing "Selected bulk operations". So there I can select the custom operation that I have written.

So far doing this works for me but I want to automate this one. So once I enable my module with this custom operation I need to add this custom bulk operation to the existing view's "Selected bulk operations".

Is there any hooks or alters that do this?

1

hook_views_default_views_alter() is the sauce you're after

  • 1
    Drupal is a CMF/CMS, not a food product – Geoff May 12 '15 at 5:51
  • 1
    May you expand your answer? In which way should the OP use this hook? – kiamlaluno May 12 '15 at 16:15
  • larowlan, this solved my problem :-) – Aneek Mukhopadhyay Jun 19 '15 at 5:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.