How do I show a checkboxes form element that is selected by default?

How do I show a checkboxes form element that is selected by default?

How do I show a checkboxes form element that is selected by default? I tried setting #default_value as in the following code, but it doesn’t work. $form[‘ios’] = array( ‘#type’ => ‘checkboxes’, ‘#options’ =>... read more
How do I show a checkboxes form element that is selected by default?

Selecting image for embedded youtube video

Would like to know how to select the image that is shown on the web page for an embedded youtube video. Currently an image from the video seems to be randomly pulled out and used. read more
How do I show a checkboxes form element that is selected by default?

LIKE clause not working in hook query alter

I’m trying to replace the default search with a LIKE clause in Drupal 7. I tried to alter the query according to Adding an OR condition to an existing query: function MYMODULE_query_node_access_alter(QueryAlterableInterface $query) { foreach... read more
How do I show a checkboxes form element that is selected by default?

Get the views filter’s value

I’m building a views that has a PHP field with SQL queries. I wondering if I can get the date filter value to use it in my select statement? read more
How do I show a checkboxes form element that is selected by default?

How to redirect to a different URL based on node content while loading a node

I have a site that uses the webforms module to gather user information. On the front page there is a list of previous submissions. Each of which has a link to view the submission (generated by Views module) Link is like thingie.com/node/115/submission/1763 However,... read more
How do I show a checkboxes form element that is selected by default?

Add javascript to returned form after ajax validation

I’ve built a form with the form API, and it’s submitting via ajax via this type of thing: $form[‘submit’] = array( ‘#type’ => ‘submit’, ‘#value’ => ‘submit’, ‘#ajax’ => array(... read more
How do I show a checkboxes form element that is selected by default?

No search results display when using core search

I have added Drupal the search module block and it displays the search form. When I type and click on search button, it displays nothing, just a refresh in page only. What do I need to do to get search results to show up? I could use alternative search modules if that... read more
How do I show a checkboxes form element that is selected by default?

Redirect Using Rules Based on Account Role

Further to this previous question, https://drupal.stackexchange.com/questions/1790/redirect-users-after-login-depending-on-the-users-roles I am trying to accomplish a similar redirect on a D7 whereby once a user with a specific role type has logged in, they are... read more