You are here

function module_builder_load in Module Builder 6

Checks if a module id is valid

Parameters

$mid: The module ID to be loaded

Return value

Either the module ID if found or FALSE if it wasn't found

File

./module_builder.api.inc, line 53
API functions for the module_builder module

Code

function module_builder_load($mid) {
  $result = db_fetch_object(db_query("SELECT * FROM {module_builder_basic} WHERE mid = %d", $mid));
  if ($result) {
    return $result;
  }
  else {
    return FALSE;
  }
}