List Entity and List Entity In a View

Hi

I think my question is simple.

I have created an entity and bundle types?

How can I list created entities/bundles? I mean not types but content of that types.
And when I open a View I can't see the entity of my type, Do I have to modify it?

Best Regards,
Daniil

Using an element of type 'value' to store a count

I am learning forms and ajax. I am currently trying to keep track of how many times the select value is changed by using a element of type value and checking the $form_state['values'] array and incrementing it if it has a value. The problem is that the first time I change the select my form_state variable does not register that the element has been given a value. When I press the button the second time it starts showing a value. It is like the $forms_state variable is lagging by one. Here is my code:
function ajax_example_autocheckboxes($form, &$form_state) {

drupal_set_message(dprint_r($form_state['values'], TRUE));
$default = !empty($form_state['values']['howmany']) ? $form_state['values']['howmany'] : 1;

$form['howmany_select'] = array(
'#title' => t('How many checkboxes do you want?'),
'#type' => 'select',
'#options' => array(1 => 1, 2 => 2, 3 => 3, 4 => 4),
'#default_value' => $default,
'#ajax' => array(
'callback' => 'ajax_example_autocheckboxes_callback',
'wrapper' => 'checkboxes-div',
'method' => 'replace',
'effect' => 'fade',
),

);

$form['checkboxes_fieldset'] = array(
'#title' => t("Generated Checkboxes"),
// The prefix/suffix provide the div that we're replacing, named by
// #ajax['wrapper'] above.
'#prefix' => '

',

7.2 Security Upgrade, FYI

I'm just sharing this... it's a non-problem for me because I'm way far fed up with Drupal today, but it may be useful info to someone.

I upgraded, per the orders of the pink box, from Drupal v7.0 (IIRC) to 7.2. I installed Drupal via GoDaddy, so must update via GoDaddy. GoDaddy reported no problems. A couple hours later, I clicked on "Modules" and discovered that every Module was disabled.

Multi-Level marketing on drupal

Hi, so a friend asked me to make her a multilevel website. And I am thinking of using drupal, don't have much experience with it, but setup a simple website pretty quickly with it. Have done html and flash in the past.

She has a multilevel marketing company, basically sub distributors managing her products (health type products).

Duplicate a block with hook_page_alter without having two same element id

Hi,

My code works but I want to know if it's the right way to do it, specially the cloning part. If I don't clone the block object I can change the block's delta and get two same id in the page.

Check if mod_rewrite is enabled on Apache

Hi

I'm new to Drupal, I've installed a Drupal 7 on a webhosting and it's working ok (slow tought). I'm in the proccess of verifying that all Webhost requirements are OK.

The question is:
How can I know if Apache mod_rewrite extension is enabled?
(I looked for an answer on the forums but didnt find it)

Thanks

Nelson C.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x