Setting value to checkboxes in a form

Setting value to checkboxes in a form

I’ve been having troubles with form_set_value(). I’ve extended the Search form, everything works, but after submission, the form values for those fields added by me return to default (see the code). What am I doing wrong? Thank you! <? /** *... read more
Setting value to checkboxes in a form

How to select files from /sites/default/files with IMCE filebrowser?

Somehow the settings of directories in the configuration of IMCE (7.x-1.7) is pointing to <root>/. which lets met start in the private_files directory but not in the (public) files directory. I couldn’t figure it out where to change this. I tried to set a... read more
Setting value to checkboxes in a form

How to transfer Userpoints between users?

I installed the User Points module (v7.x-1.0) and after going through all of the configuration I cannot seem to find the option for transferring Points between users. Can someone point out how I find/activate this feature? read more
Setting value to checkboxes in a form

Having issues getting solr search facets to appear on non-search pages

I’m using the solr search integration module with facet api on drupal 7 and I’m having issues getting the facets to show on non-search pages. I’ve checked the box for non-search pages and added a few different paths but nothing appears on those pages... read more
Setting value to checkboxes in a form

how to validate minimum age in webform

I’ve got a question about webform and webform validation. I’m in D6.19 with webform 6.x-3.4 and webform validation 6.x-1.3 I’m adding a date field to capture age, and I need to validate that the age of the user is at least 13 years from current date.... read more
Setting value to checkboxes in a form

How can I update file attachment and keep filename?

I understand changes of file attaching in D7, but problem is, if I delete and re-upload changed file, the deleted file is still on server and re-uploaded filename gets changed. If I understand correctly, removed file is deleted by cron, so there is a delay. Is it... read more
Setting value to checkboxes in a form

Automatic Node Expire / Unpublish with Renew Option

I have a classifieds site and would like to have a node expire after 45 days (unpublished), no matter how many times the user edits and saves the node. However after the node expires, the user has the ability to renew (publish) for another 45 days. I would like the... read more
Setting value to checkboxes in a form

setting template file using template_preproccess_page not working

I have a list of pages with url ?q=value/abc/1 ?q=value/abc/2 ?q=value/abc/3 ?q=value/abc/4 for which i require a specific template.I have written a template_preprocess_page function,but it does not call the required tpl file.But if i set the test variable as $test =... read more
Setting value to checkboxes in a form

How to detect if "Show end date" is checked?

Trying to find a way to get the value of the checkbox “Show end date” on a date field on drupal 7. Is it stored somewhere in the database? Can’t find it. Its definitely not in the $node object. Any ideas? read more
media_gallery images are not opening with proper size

media_gallery images are not opening with proper size

I have set up a media_gallery with colorbox in http://www.mountvilleresorts.com/. The gallery is working fine, but gallery images are shown very small. After opening the images again, they are shown in the right size. What is wrong with galleries that shows the images... read more
Setting value to checkboxes in a form

how to use hook_webform_submission_presave on a site with multiple webforms

I’ve got a question on the use of the hook_webform_submission_presave function for D6/webform 6.x-3.4 I’ve got a multi-lingual D6 site that has one webform for each language, I’m trying to create a new module that will catch the submitted form info... read more
Setting value to checkboxes in a form

how to include globals.php in template.php file

I need the variables from the globals.php and I can’t seem to call/register them in theme’s template.php file. These variables are needed for my custom hook function for the template. Am i missing something (since it’s been global and be called... read more
Setting value to checkboxes in a form

Some of my Panel content is missing for anonymous users. What went wrong?

I’ve set up a landing page panel with two items in it, a content page with a welcome message and a view showing certain content. It works great, but when I look at it as an anonymous user only the view is showing up, not the welcome page message. I haven’t... read more
Setting value to checkboxes in a form

Associate an image with each checkbox

I’d like to have a graphics-oriented Webform, wherein the user will select from check boxes that have a specific image associated with each. For instance, I might have a row of checkboxes with a color swatch above each one, like this: [red jpg color swatch]... read more
Setting value to checkboxes in a form

How do I properly combine UNION with LIMIT?

I’m trying to get content from database divided by category. I want strictly max 4 entries of type “people” and 4 other entries of type “organization”. I tried to do it like that: $query = db_select(‘node’, ‘n’)... read more
Setting value to checkboxes in a form

How do I access an Entity Reference’s field values?

I have 2 content types. BaseContent: Field1: Title Field2: ID# RelatedContent: Field1: [Entity reference to a BaseContent] Field2: **[Automatically insert the value of the referenced BaseContent here]** But I can’t work out how to do the part in the **s. I feel... read more
Setting value to checkboxes in a form

Feed Import Error

This import was working, now I’m stumped on why it’s breaking. An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=79&op=do StatusText: OK ResponseText: Please register to continue….[lots more] just a... read more
Setting value to checkboxes in a form

Database table cache_views_data is extreme large, what size is normal?

I have a Drupal 7 site with ~70,000 nodes and ~500,000 terms. During some investigations for the cause of substantial performance problems, I found out that the database table cache_views_data is about 18 GB big. Is this normal? UPDATE: I am using time based and... read more
Setting value to checkboxes in a form

How can I enable/disable programatically added fields from a custom module?

I’m trying to create a custom module for payment. When installed, the module automatically adds two fields to the ‘Article’ content type. I have ‘enable/disable checkbox’ in the form: Enable: Should mean that people on my live website can... read more
Setting value to checkboxes in a form

Language switcher does not display the correct link to the default language path

I maintain a bilingual English/French website and the Language Switcher block is available on every page to allow the user to switch language. It works except on one particular taxonomy term page and all it’s descendants: When the language is set to English... read more