Related Content
DrupalCamp Scotland 2025
This year, DrupalCamp Scotland was held on the 7th November, at the University of Edinburgh.
On the morning of the conference I made the quick walk from by bed and breakfast and arrived at 50 George Square to join in with around 60 attendees to a day of talks and chatting.
Drupal 11: Programmatically Change A Layout Paragraphs Layout
The Layout Paragraphs module is a great way of combining the flexibility of the layout system with the content component sytem of the Paragraphs module.
Drupal 11: Using SDC Component Library To Preview Single Directory Components
Single Directory Components (SDC) consist of a directory of files that go together to create a small component on a Drupal website. SDC can be nested together, which means that a consistent set of elements can be created and plugged together on a site.
Drupal 11: Using Storybook To Preview Single Directory Components
Single Directory Components (SDC) consist of a directory of files that go together to create a small component on a Drupal website. The component contains all the templates, styles, script, and images needed to display some content in a consistent way.
Drupal 11: Object Oriented Hooks And Hook Service Classes
Hooks are used in Drupal to allow modules and themes to listen to or trigger different sorts of events in a Drupal system. During these events Drupal will pause and ask if any modules want to have any say in the event that is currently being triggered.
LocalGov Drupal Camp 2025
LocalGov Drupal Camp 2025 was held in The Abbey Community Centre (near Westminster Abbey in London) on July 3rd 2025. I travelled down (despite the English rail network's attempts to the contrary) for the day as an attendee.
Comments
First of all, thanks for the blog post, it really helped me!
Just one thing I'd like to note though; I did manage to successfully access the Views import page with a regular user with all permissions using the following code:
// Create a user with ALL available permissions and log in... $permissions = module_invoke_all('perm'); $full_user = $this->drupalCreateUser($permissions); $this->drupalLogin($full_user); // load the value of a "view export" (stored in a file in my case)... $view_import = file_get_contents('PATH_TO_FILE_CONTAINING_EXPORT'); // check if you can access the import page (with "verbose message") $this->drupalGet('admin/build/views/import'); // import the view by submitting the import form $this->drupalPost('admin/build/views/import', array('view' => $view_import), 'Import'); // now you're on the "edit View" page, and still need to save it! $this->drupalPost(null, array(), 'Save');Hope this helps someone...
Submitted by Ben Vercammen on Tue, 06/21/2011 - 21:01
PermalinkHi Ben! Thanks for that snippet. Very interesting :)
Submitted by philipnorton42 on Tue, 06/21/2011 - 21:34
PermalinkAdd new comment