D7 fields, How do I remove N/A from Radio Button list?

How do I remove N/A from Radio Button list?
I don't want the option required.
I have seen these two Documentation pages:
http://drupal.org/node/617694, and http://drupal.org/node/656622, but they pertain to CCK on D6.

Thanks

PDOException SQLSTATE 42S02 1146 table error after enabling Ckeditor

I upgraded to D7 and installed Ckeditor 7.x-1.0. After enabeling the Ckeditor module and clicking on configure, I got the following error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'new.ckeditor_input_format' doesn't exist: SELECT f.* FROM {ckeditor_input_format} f; Array ( ) in ckeditor_profile_load() (line 267 of /home/username/website/sites/all/modules/ckeditor/ckeditor.module).

D7 - Possible Menu Bug?

I have a site setup that has a custom menu on it called "Header Nav".

Then I have a basic page called Services.

When I created the services page I did not add it into the menu because it needs to be in my custom menu Header Nav, but each time I edit the page it automatically tries to add the menu item to the main menu. When I forget to uncheck the box to add it to the main menu it deletes my menu item from the header nav menu.

Is this possibly a bug, or how can I stop it from automatically trying to add the basic page to the menu each time I update it?

Thanks

which is faster/better for small static data set: mysql table vs store as array?

i have 200 sets of data which is static, each in format:
drug name = a, drug brand = b, drug use = c.

i have chosen to store this as an array:

edit node data from within a submit function?

In general it does not appear possible to edit node/form values from within a submit function. Is this correct?

Specifically, I want to save and rename a file within the submit function, capture the new file name, and then save it to the node object, to be accessed afterward from a hook insert. This seems like the obvious approach, is there a different way that this should be done?

Thanks in advance.

[bartik] Add region between content and comments

Hello,

I'm using bartik as a base to create a custom theme and I'd like to add a region under the content and over the comments.

I have been trying to reproduce the steps provided here http://drupal.org/node/706632#comment-2775676 to achieve what I want to do for Zen Subtheme with no success.

I'll try to explain what I did in order to see if someone can help me a little bit more:

1. I defined it on bartik.info file as it follows (more or less in line 18):

regions[header] = Header
regions[help] = Help
regions[page_top] = Page top
regions[page_over_comments] = Over comments
regions[page_bottom] = Page bottom
regions[highlighted] = Highlighted

2. I edited template.php and added this code in line 12:

 if (!empty($variables['page']['page_over_comments'])) { 
    $variables['classes_array'][] = 'page_over_comments';
  }

since I think that's what I did wrong I will copy as well its context:

/**
* Add body classes if certain regions have content.
*/
function bartik_custom_preprocess_html(&$variables) {
if (!empty($variables['page']['featured'])) {
$variables['classes_array'][] = 'featured';
}
// That's my addition
if (!empty($variables['page']['page_over_comments'])) {
$variables['classes_array'][] = 'page_over_comments';
}
//Here ends my addition

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x