Robert Redl's Library tagged → View Popular, Search in Google
in list: dev
-
dashboards for their users, using blocks as widgets. Blocks in a Homebox page are resizeable, and reorderable by dragging.
-
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)...
-
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.
-
.search-info {
display: none;
} -
.page-search-node h1 {
display: none;
}
in list: dev
-
Misery is a module designed to make life difficult for certain users. It can be used:
-
To delight in the suffering of others
-
UPDATE files SET filepath = REPLACE(filepath,'files/','newlocation');
-
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
$nodeobject, and callnode_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
$nodeobject, and callnode_save()on that node object. However, in this case none of the data will be validated.The other method is to create a
$form_statearray that mimics your custom node's form, and an empty$nodeobject, and then calldrupal_execute()on them. This is the method I prefer, so I'll use it here. - 2 more annotation(s)...
Selected Tags
Related Tags
Top Contributors
Groups interested in drupal
-
Drupal
Items: 34 | Visits: 108
Created by: Stefanos Karagos
-
Drupal
drupal is my choice of CMS f...
Items: 620 | Visits: 103
Created by: Scott Blackburn
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
