Skip to main content

Robert Redl's Library tagged drupal   View Popular, Search in Google

Oct
5
2011

  • dashboards for their users, using blocks as widgets. Blocks in a Homebox page are resizeable, and reorderable by dragging.
Aug
29
2011

  • add preprocess_functions to my template.php to make the template a bit easier to understand.
  • add a related view to the $content.
  • 1 more annotation(s)...
Aug
22
2011

  • The Finder wizard module allows users to create and configure a multiple step form to find nodes, users, or items listed by the Views module.

  • Provides a quick and easy way to replace any text on the site.

  • .search-info {
     display: none;
     }
  • .page-search-node h1 {
      display: none;
    }
Dec
16
2010

  • Misery is a module designed to make life difficult for certain users. It can be used:
  • To delight in the suffering of others
Sep
4
2010

  • Flag module
  • Rules module
  • 2 more annotation(s)...
Sep
3
2010

  • Drush is a command line shell and Unix scripting interface for Drupal.
May
13
2010

  • Member for
     
    5 years 14 weeks
Apr
21
2010

  • Programatically adding images to a custom node type

     

    Now, let's say you're in a situation where you want to create your node from start to finish without any user input whatsoever. Perhaps you're pulling REST data from a third party; perhaps you're creating custom nodes from a data file.

     

    There are essentially two methods to create nodes in Drupal. The first is to create a $node object, and call node_save() on that node object. However, in this case none of the data will be validated.

  • Programatically adding images to a custom node type

     

    Now, let's say you're in a situation where you want to create your node from start to finish without any user input whatsoever. Perhaps you're pulling REST data from a third party; perhaps you're creating custom nodes from a data file.

     

    There are essentially two methods to create nodes in Drupal. The first is to create a $node object, and call node_save() on that node object. However, in this case none of the data will be validated.

     

    The other method is to create a $form_state array that mimics your custom node's form, and an empty $node object, and then call drupal_execute() on them. This is the method I prefer, so I'll use it here.

  • 2 more annotation(s)...
1 - 20 of 39 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top