get the content type 'machine name' by the 'human readable name '
You can easily build a query to achieve this. However, as Molot mentioned, you have to handle human readable names that aren't unique.


  $machine_name = db_select('node_type', 'n')
  ->fields('n', array('type'))
      ->condition('name', 'Basic page')
      ->execute()->fetchField();