Baltimore Drupal Meetup - April 9, 2014

schiavone's picture
2014-04-09 18:30 - 20:00 UTC
Event type: 
User group meeting

We meet, talk Drupal and maybe have a beer. Often we have a presentation and sometimes we just have casual conversation. Either way come join us to learn more about Drupal and meet other Drupalistas.

Tonight we'll be kicking off planning for Baltimore Drupal Camp and we'll getting some Drupal tips over a pint or two.

As usual we'll be meeting above Bertha's at...

734 S. Broadway
Baltimore, MD 21231

Have a topic? Want to present? Have a new Drupal masterpiece? Let us know.


new member in baltimore

wallexk1's picture

I have a situation in developing a custom module using form api.

This are the code but its not working for me........


function mydata_page_form($form, $form_state){

$form = array();

$header = array( t('File ID'), t('File Name'), t('File link'), t('User'),

$query = db_select('mydata', 'm')->extend('PagerDefault') ;
$query->join('file_managed', 'f', 'f.fid = m.fid ');
$query->addjoin('INNER','users', 'u', 'm.uid = u.uid ');
->fields ('m', array('fid', 'uid'))
->fields ('f', array('filename', 'uri'))
->fields ('u', array('name'))
->orderBy ('fid','DESC')
$results = $query -> execute();

$rows = array();
foreach($results as $result){
$rows[] = array (

$form['mydata_table'] = array(
'#type' => 'tableselect',
'#header' => $header,
'#options' => $rows,
'#empty' => t('no application found'),

$form['pager'] = array ('#markup' => theme('pager'));

//$form['mydata_delete']['deletemydata'] = array(
// '#type' => 'checkbox',
// '#title' => 'Delete',
// '#return_value' => 1,
// '#default_value' => 0,
// '#descrption' => t("If the box check, the list checked in the table will be remove")

$form['delete'] = array(
'#type' => 'submit',
'#value' => t('delete'),
'#submit' => array('mydata_page_form_delete'),

return $form;

function mydata_page_form_delete($form, $form_state){
$selected = array_filter($form_state['values']['mydata_table']);

->condition('fid', $selected,'IN' )