OpenAid Hero

When a Hero comes along, with the strength to carry on.

Enabling the Hero feature adds a block to your homepage where you can add a statement or paragraph to highlight your organization. It is a free text area with a button linking to another page or site.

Screenshot of the Hero block

To enable the feature, check the box next to OpenAid Hero feature. Then scroll to the bottom of the screen and click Save settings.

Step 3: Basic Configuration

Here you will find basic information on configuring Zentropy.

This page is under construction!

Read on! Step 4: Advanced Configuration

How to Install Drupal 7 and basic configs [Slides]

Drupal 7.9 released around a month back and it was when I created theses slides. Its very basic but focuses on linux (Ubuntu) it should not be very different from windows ;).
Full Slides here.

Creating the configuration form

Main topic described: Form API
Main functions described: variable_get(), system_settings_form()

Next, we will build the current_posts_form() function. We build the form by adding elements to the $form array. In a pattern similar to the menu $items variable, the name of each element is its key in the array, with that key's value being a specially formatted associative array. In this value array, we list the attributes of the element, this time preceding each key with a hash mark (#).

Add the following to your current_posts.module file:

 * Page callback: Current posts settings
 * @see current_posts_menu()
function current_posts_form($form, &$form_state) {
  $form['current_posts_max'] = array(
    '#type' => 'textfield',
    '#title' => t('Maximum number of posts'),
    '#default_value' => variable_get('current_posts_max', 3),
    '#size' => 2,
    '#maxlength' => 2,
    '#description' => t('The maximum number of links to display in the block.'),
    '#required' => TRUE,

  return system_settings_form($form);

(Remember not to include the opening or closing PHP tags when you add this section.)

The element attributes

Subscribe with RSS Subscribe to RSS - basic configuration