Active
Project:
Availability Calendars
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2012 at 19:38 UTC
Updated:
18 Sep 2012 at 15:16 UTC
Jump to comment: Most recent
Comments
Comment #1
fietserwinOn one side, it should not be too difficult to implement this, on the other side, we are talking about a default setting. There is no missing functionality, just ease of use for your use case.
Anyway, I will see if it easy to add it to the field settings UI, without further complicating that (already loaded) UI.
Comment #2
naoliva commentedFollowing...
Comment #3
bendev commentedyou could use hook_node_form_alter
-> test your node type
-> check you add a node and not update an existing node (to not override existing settings)
if (preg_match("/add/i", $_SERVER['REQUEST_URI'])) {
then do a
$form['your_field_name']['und'][0]['enabled']['#default_value']=0;
}
replace und by the $node-language or use wrappers...