You are here

function afb_get_node_form_block_data in Advanced Form Block 7

Returns the data object retrieved from the advanced form block tables.

9 calls to afb_get_node_form_block_data()
afb_after_build in ./afb.module
Implements hook_after_build().
afb_block_configure in ./afb.module
Implements hook_block_configure().
afb_block_delete in ./afb.module
Deletes a block instance from the block tables.
afb_block_view in ./afb.module
Implements hook_block_view().
afb_configure_node_add_block in ./afb.module
Presents the node add type blocks settings form.

... See full list

File

./afb.module, line 613
Allows administrators to create blockd of node add/edit forms.

Code

function afb_get_node_form_block_data($delta) {
  $result = db_select('afb_blocks_data', 'n')
    ->fields('n', array(
    'delta',
    'title',
    'content_type',
    'form_type',
    'nid',
    'data',
  ))
    ->condition('n.delta', $delta, '=')
    ->execute();
  foreach ($result as $row) {
    $result_obj = $row;
  }
  return $result_obj;
}