Calling a REST Server using JSON with PHP

Here is a small module to access a REST server using PHP. The module assumes that you already have services installed with a REST server working and that you've already created some nodes.

This module gets a node and prints the node and body. It's really simple and is just meant as a demo.

File: restget.module

White spaces in file name links replaced by zeros in file list view

Hi,

Many files have been uploaded via webforms before it was realized that the white spaces in the file names were replaced by zeros in webform submissions custom view I created, rendering the links unusable to access the actual files that retain the white spaces in their names. Is there any way to configure the link expression in drupal 7 to prevent or change the zeros appearing in those links?

Thanks for any help with this!

Struggling with Git, tags, branches, releases

Folks,

I have made a couple of modules and made them available here on drupal.org.

But I keep on struggling with Git and creating updates and/or new releases of these modules. I simply don't grasp the basic mechanisms of Git, and fumble blindly, copying Git-commands from the versions-tab on my projects and just being happy, but none the wiser, when something works. Not really satisfying!

One example:
In the project Trick Question http://drupal.org/project/trick_question there was a small error. I cloned the repository, fixed the error and tried all I could to push the updated files back. This worked inasmuch as the files were committed and are visible in the commits section, but the update had no impact on the module package available for download.

I have tried all kinds of voodoo: patching, creating new tags and whatnot. The files are there and currently the version 7.x-1.3, which is visible in the commits section is fine, but when I want to add a new release, I see "No valid branches or tags found".

I have tried all kinds of git tag, git branch, git push, commit and everything I could possibly think of and see on the instructions page, but I still can't release a new version.

I would love to understand what it takes to make a simple edit and implement it in the existing release and what it would take to make larger changes and make a new release...

Expand block visibility options in Drupal 7

Hi,

is there an easy way to set a block visible for a specific site (path) and additional for all nodes with a specific type?

The standard options are combined by a logical "AND" - but I would need a logical "OR" between side name and content type.

I found these snippets
http://drupal.org/node/60317
http://drupal.org/node/134425
but the "if this PHP code returns TRUE" sections does not exist in drupal 7 (...any more?).

The devel theme display bug

For drupal 7.8, the theme develp module display the block and region override file like 'block__main_menu.tpl.php', but the actual file name is 'block--main-menu.tpl.php', it displays the word delimiter as '_', but the actually is '-'.

can be achived using views ?

I've a content type and has three field ( User Reference,Taxonomy,TextField). And below table format can be easily created using views.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x